mirror of
https://github.com/transmission/transmission
synced 2025-01-31 11:23:40 +00:00
Fix the rest of :: formatting in C++ code
This commit is contained in:
parent
e9394e2f9b
commit
2d02481f2d
1 changed files with 6 additions and 6 deletions
|
@ -699,23 +699,23 @@ TrMainWindow::refreshStatusBar ()
|
|||
|
||||
if (mode == "session-ratio")
|
||||
{
|
||||
str = tr ("Ratio: %1").arg (Formatter:: ratioToString (mySession.getStats ().ratio));
|
||||
str = tr ("Ratio: %1").arg (Formatter::ratioToString (mySession.getStats ().ratio));
|
||||
}
|
||||
else if (mode == "session-transfer")
|
||||
{
|
||||
const tr_session_stats& stats (mySession.getStats ());
|
||||
str = tr ("Down: %1, Up: %2").arg (Formatter:: sizeToString (stats.downloadedBytes))
|
||||
.arg (Formatter:: sizeToString (stats.uploadedBytes));
|
||||
str = tr ("Down: %1, Up: %2").arg (Formatter::sizeToString (stats.downloadedBytes))
|
||||
.arg (Formatter::sizeToString (stats.uploadedBytes));
|
||||
}
|
||||
else if (mode == "total-transfer")
|
||||
{
|
||||
const tr_session_stats& stats (mySession.getCumulativeStats ());
|
||||
str = tr ("Down: %1, Up: %2").arg (Formatter:: sizeToString (stats.downloadedBytes))
|
||||
.arg (Formatter:: sizeToString (stats.uploadedBytes));
|
||||
str = tr ("Down: %1, Up: %2").arg (Formatter::sizeToString (stats.downloadedBytes))
|
||||
.arg (Formatter::sizeToString (stats.uploadedBytes));
|
||||
}
|
||||
else // default is "total-ratio"
|
||||
{
|
||||
str = tr ("Ratio: %1").arg (Formatter:: ratioToString (mySession.getCumulativeStats ().ratio));
|
||||
str = tr ("Ratio: %1").arg (Formatter::ratioToString (mySession.getCumulativeStats ().ratio));
|
||||
}
|
||||
|
||||
ui.statsLabel->setText (str);
|
||||
|
|
Loading…
Reference in a new issue