Removed most of the usages of std::ostringstream in the gui.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5056 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2012-03-28 18:02:49 +00:00
parent 9ef7d08d2b
commit 4cb844c44d
38 changed files with 190 additions and 354 deletions

View file

@ -24,8 +24,6 @@
#include "peerstatus.h"
#include <sstream>
PeerStatus::PeerStatus(QWidget *parent)
: QWidget(parent)
{
@ -50,16 +48,10 @@ void PeerStatus::getPeerStatus(unsigned int nFriendCount, unsigned int nOnlineCo
{
/* set users/friends/network */
std::ostringstream out;
out << nFriendCount << " ";
std::ostringstream out2;
out2 << nOnlineCount << "";
statusPeers->setToolTip(tr("Online Friends/Total Friends") );
if (statusPeers)
statusPeers -> setText( "<strong>" + tr("Friends") + ":</strong> " + QString::fromStdString(out2.str()) + "/" + QString::fromStdString(out.str()) );
statusPeers -> setText(QString("<strong>%1:</strong> %2/%3 ").arg(tr("Friends")).arg(nOnlineCount).arg(nFriendCount));
if (nOnlineCount > 0)
{