summaryrefslogtreecommitdiffstats
path: root/src/modules/torrent/tc_statusbarapplet.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:57:20 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:57:20 -0600
commitc6611272c2bc4a42580848946c8c5d81bb0409c7 (patch)
tree0fd5b58844663dfcd00fb2b79cf67dd0fd429c62 /src/modules/torrent/tc_statusbarapplet.cpp
parent805c2821ceaddada48b346c6d11bd0dc1351a539 (diff)
downloadkvirc-c6611272c2bc4a42580848946c8c5d81bb0409c7.tar.gz
kvirc-c6611272c2bc4a42580848946c8c5d81bb0409c7.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 805c2821ceaddada48b346c6d11bd0dc1351a539.
Diffstat (limited to 'src/modules/torrent/tc_statusbarapplet.cpp')
-rw-r--r--src/modules/torrent/tc_statusbarapplet.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/torrent/tc_statusbarapplet.cpp b/src/modules/torrent/tc_statusbarapplet.cpp
index e8b6528b..45b32dba 100644
--- a/src/modules/torrent/tc_statusbarapplet.cpp
+++ b/src/modules/torrent/tc_statusbarapplet.cpp
@@ -39,12 +39,12 @@ void KviTorrentStatusBarApplet::selfRegister(KviStatusBar *bar)
TQString formatSize(float sz)
{
if (sz >= 1024.0f*1024.0f*1024.0f)
- return TQString("%1 GB").arg(sz / (1024.0f*1024.0f*1024.0f), 2, 'f', 2);
+ return TQString("%1 GB").tqarg(sz / (1024.0f*1024.0f*1024.0f), 2, 'f', 2);
if (sz >= 1024.0f*1024.0f)
- return TQString("%1 MB").arg(sz / (1024.0f*1024.0f), 2, 'f', 2);
+ return TQString("%1 MB").tqarg(sz / (1024.0f*1024.0f), 2, 'f', 2);
if (sz >= 1024.0f)
- return TQString("%1 KB").arg(sz / 1024.0f, 2, 'f', 2);
- return TQString("%1 B").arg(sz, 2, 'f', 2);
+ return TQString("%1 KB").tqarg(sz / 1024.0f, 2, 'f', 2);
+ return TQString("%1 B").tqarg(sz, 2, 'f', 2);
}
void KviTorrentStatusBarApplet::update()
@@ -52,10 +52,10 @@ void KviTorrentStatusBarApplet::update()
if (KviTorrentInterface::selected())
{
TQString msg = TQString("up: %1 K/s (%2), dn: %3 K/s (%4)")
- .arg(KviTorrentInterface::selected()->speedUp(), 2)
- .arg(formatSize(KviTorrentInterface::selected()->trafficUp()))
- .arg(KviTorrentInterface::selected()->speedDown(), 2)
- .arg(formatSize(KviTorrentInterface::selected()->trafficDown()));
+ .tqarg(KviTorrentInterface::selected()->speedUp(), 2)
+ .tqarg(formatSize(KviTorrentInterface::selected()->trafficUp()))
+ .tqarg(KviTorrentInterface::selected()->speedDown(), 2)
+ .tqarg(formatSize(KviTorrentInterface::selected()->trafficDown()));
setText(msg);