[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/utils/filelight/src/part
From:       Friedrich W. H. Kossebau <kossebau () kde ! org>
Date:       2010-03-25 16:48:26
Message-ID: 20100325164827.0D14EAC876 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1107434 by kossebau:

changed: use KLocale::formatByteSize() for humanReadableSize

 M  +7 -0      fileTree.cpp  


--- trunk/playground/utils/filelight/src/part/fileTree.cpp #1107433:1107434
@@ -52,6 +52,12 @@
 QString
 File::humanReadableSize(uint size, UnitPrefix key /*= mega*/) //static
 {
+    Q_UNUSED( key );
+    // TODO: LocalLister::scan() divides by 1024, to be able to use only 32bit for size
+    // TODO: ensure again three significant figures
+    return KGlobal::locale()->formatByteSize(1024*(quint64)size);
+
+#if 0
     if (size == 0)
         return "0 B";
 
@@ -81,4 +87,5 @@
     }
 
     return s;
+#endif
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic