1
0
Fork 0
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:
Mike Gelfand 2014-12-26 14:22:35 +00:00
parent e9394e2f9b
commit 2d02481f2d

View file

@ -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);