summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2011-05-27 18:55:18 +0200
committerArno <am@disconnect.de>2011-05-27 18:55:18 +0200
commitbd74eb2df37dd84ecf0279971c64c23ac5de8bce (patch)
treed2a6c2353b4fcef1423cb8fd4fd7f0f418b808b1 /shemov.cpp
parentd924a6414962435a0695441216474c7d95044233 (diff)
downloadSheMov-bd74eb2df37dd84ecf0279971c64c23ac5de8bce.tar.gz
SheMov-bd74eb2df37dd84ecf0279971c64c23ac5de8bce.tar.bz2
SheMov-bd74eb2df37dd84ecf0279971c64c23ac5de8bce.zip
Turned dvd size constant into a global
Moved constant dvd size in bytes to SmGlobals. It spread to several source files, so it seemed to be a candidate.
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 96e2399..cf49b57 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -278,7 +278,7 @@ void SheMov::newMovieWizardWithFiles(){
void SheMov::setSize(qint64 size){
QLocale l;
QString val;
- const qint64 dvdSize = Q_INT64_C(4707319808);
+ const qint64 dvdSize = SmGlobals::instance()->dvdSize();
qint64 free = dvdSize - size;
QString selectedSize = l.toString(size / 1024.0 / 1024.0, 'f', 2);
QString freeSize = l.toString(free / 1024.0 / 1024.0, 'f', 2);