diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-09-01 15:25:00 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-09-01 15:27:14 (GMT) |
commit | 8bc0dce2c74c28acd36daa73e84f7c9d79760e4a (patch) | |
tree | 30e71af7768f3a4718459ea0acadb2c94790999b /demos/browser | |
parent | abcfda3554ef2d1c1ab994a5215a9aa6b107c64a (diff) | |
download | Qt-8bc0dce2c74c28acd36daa73e84f7c9d79760e4a.zip Qt-8bc0dce2c74c28acd36daa73e84f7c9d79760e4a.tar.gz Qt-8bc0dce2c74c28acd36daa73e84f7c9d79760e4a.tar.bz2 |
QString usage cleanups
- tr() already returns a QString, duh
- use multi-arg arg() (heh)
Diffstat (limited to 'demos/browser')
-rw-r--r-- | demos/browser/downloadmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/browser/downloadmanager.cpp b/demos/browser/downloadmanager.cpp index 876ec1d..ab68209 100644 --- a/demos/browser/downloadmanager.cpp +++ b/demos/browser/downloadmanager.cpp @@ -282,7 +282,7 @@ void DownloadItem::updateInfoLabel() remaining = tr("- %4 %5 remaining") .arg(timeRemaining) .arg(timeRemainingString); - info = QString(tr("%1 of %2 (%3/sec) %4")) + info = tr("%1 of %2 (%3/sec) %4") .arg(dataString(m_bytesReceived)) .arg(bytesTotal == 0 ? tr("?") : dataString(bytesTotal)) .arg(dataString((int)speed)) |