blob: d5b30e52e891d710b21246f3657b174941293baf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- ./kmldonkey/kmldonkey/infolist.cpp.orig 2008-07-12 06:05:22.000000000 -0300
+++ ./kmldonkey/kmldonkey/infolist.cpp 2008-07-12 06:06:56.000000000 -0300
@@ -618,6 +618,14 @@
return i18n( "normal priority", "Normal" );
}
+QString humanReadableFileNumber( int fileNo )
+{
+ QString foo;
+
+ foo = KGlobal::locale()->formatNumber(fileNo, 0);
+
+ return foo;
+}
DownloadFile::DownloadFile( KListView *parent, int file )
: InfoItem( parent, file )
@@ -712,6 +720,8 @@
}
case 13: // filetype
return KMimeType::findByURL( KURL( "file:/" + it->fileName() ), 0, false, true )->comment();
+ case 14: // number
+ return humanReadableFileNumber(it->fileNo());
default:
return "ERROR!";
|