summaryrefslogtreecommitdiffstats
path: root/libktorrent/interfaces/functions.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:39:49 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-06 03:48:48 +0200
commit161e93feae40489201edee480db6802a9a61b0a4 (patch)
tree77e3e4aeae8d388ac7a7f5d1f0a8cf67045ee4a8 /libktorrent/interfaces/functions.cpp
parent1d7c126b63cbc97bba847f61e7c9ee89b80a390c (diff)
downloadktorrent-161e93feae40489201edee480db6802a9a61b0a4.tar.gz
ktorrent-161e93feae40489201edee480db6802a9a61b0a4.zip
Remove additional unneeded tq method conversions
(cherry picked from commit bb37c4052a9edfff2196984cef241b1ce2df7bb3)
Diffstat (limited to 'libktorrent/interfaces/functions.cpp')
-rw-r--r--libktorrent/interfaces/functions.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libktorrent/interfaces/functions.cpp b/libktorrent/interfaces/functions.cpp
index cade53a..6a19d7f 100644
--- a/libktorrent/interfaces/functions.cpp
+++ b/libktorrent/interfaces/functions.cpp
@@ -32,19 +32,19 @@ namespace kt
{
KLocale* loc = KGlobal::locale();
if (bytes >= 1024 * 1024 * 1024)
- return i18n("%1 GB").tqarg(loc->formatNumber(bytes / TO_GIG,precision < 0 ? 2 : precision));
+ return i18n("%1 GB").arg(loc->formatNumber(bytes / TO_GIG,precision < 0 ? 2 : precision));
else if (bytes >= 1024*1024)
- return i18n("%1 MB").tqarg(loc->formatNumber(bytes / TO_MEG,precision < 0 ? 1 : precision));
+ return i18n("%1 MB").arg(loc->formatNumber(bytes / TO_MEG,precision < 0 ? 1 : precision));
else if (bytes >= 1024)
- return i18n("%1 KB").tqarg(loc->formatNumber(bytes / TO_KB,precision < 0 ? 1 : precision));
+ return i18n("%1 KB").arg(loc->formatNumber(bytes / TO_KB,precision < 0 ? 1 : precision));
else
- return i18n("%1 B").tqarg(bytes);
+ return i18n("%1 B").arg(bytes);
}
TQString KBytesPerSecToString(double speed,int precision)
{
KLocale* loc = KGlobal::locale();
- return i18n("%1 KB/s").tqarg(loc->formatNumber(speed,precision));
+ return i18n("%1 KB/s").arg(loc->formatNumber(speed,precision));
}
TQString DurationToString(Uint32 nsecs)