[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kio/kio
From: Pascal Létourneau <pletourn () globetrotter ! net>
Date: 2003-05-27 20:32:53
[Download RAW message or body]
CVS commit by pletourn:
Fix the QVariant::ULongLong case.
M +15 -4 kfilemetainfo.cpp 1.71
--- kdelibs/kio/kio/kfilemetainfo.cpp #1.70:1.71
@@ -1473,7 +1473,4 @@ QString KFileMimeTypeInfo::ItemInfo::str
case QVariant::Int :
-#if QT_VERSION >= 0x030200
- case QVariant::ULongLong :
-#endif
if (unit() == KFileMimeTypeInfo::Seconds)
{
@@ -1499,4 +1496,18 @@ QString KFileMimeTypeInfo::ItemInfo::str
break;
+#if QT_VERSION >= 0x030200
+ case QVariant::LongLong :
+ s = KGlobal::locale()->formatNumber( value.toLongLong(), 0 );
+ break;
+
+ case QVariant::ULongLong :
+ if ( unit() == KFileMimeTypeInfo::Bytes )
+ return KIO::convertSize( value.toULongLong() );
+ else if ( unit() == KFileMimeTypeInfo::KiloBytes )
+ return KIO::convertSizeFromKB( value.toULongLong() );
+ else
+ s = KGlobal::locale()->formatNumber( value.toULongLong(), 0 );
+ break;
+#endif
case QVariant::UInt :
s = KGlobal::locale()->formatNumber( value.toUInt() , 0);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic