From bd74eb2df37dd84ecf0279971c64c23ac5de8bce Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 27 May 2011 18:55:18 +0200 Subject: 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. --- shemov.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shemov.cpp') 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); -- cgit v1.2.3-70-g09d2