From 088abd243c543fb838aac6a78c61540d31b2c164 Mon Sep 17 00:00:00 2001 From: defnax Date: Wed, 6 Jan 2010 00:19:20 +0000 Subject: [PATCH] added functionality to format speed for DetailsDialog git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1979 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/DetailsDialog.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/DetailsDialog.cpp b/retroshare-gui/src/gui/DetailsDialog.cpp index d655987ce..a3f03bf58 100644 --- a/retroshare-gui/src/gui/DetailsDialog.cpp +++ b/retroshare-gui/src/gui/DetailsDialog.cpp @@ -136,7 +136,12 @@ void DetailsDialog::setSources(const QString & sources) void DetailsDialog::setDatarate(const double & datarate) { - ui.datarate_line->setText(QString::number(datarate)); + QString temp; + temp.clear(); + temp.sprintf("%.2f", datarate/1024.); + temp += " KB/s"; + + ui.datarate_line->setText(temp); } void DetailsDialog::setCompleted(const qulonglong & completed)