mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-05 13:19:32 -04:00
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:
parent
9ef7d08d2b
commit
4cb844c44d
38 changed files with 190 additions and 354 deletions
|
@ -33,9 +33,6 @@
|
|||
|
||||
#include <retroshare/rschannels.h>
|
||||
|
||||
#include <sstream>
|
||||
|
||||
|
||||
/****
|
||||
* #define DEBUG_ITEM 1
|
||||
****/
|
||||
|
@ -170,12 +167,8 @@ void ChanMsgItem::updateItemStatic()
|
|||
qtime.setTime_t(cmi.ts);
|
||||
QString timestamp = qtime.toString("dd.MMMM yyyy hh:mm");
|
||||
datetimelabel->setText(timestamp);
|
||||
|
||||
{
|
||||
std::ostringstream out;
|
||||
out << "(" << cmi.count << " Files)";
|
||||
filelabel->setText(QString::fromStdString(out.str()) + " " + misc::friendlyUnit(cmi.size));
|
||||
}
|
||||
|
||||
filelabel->setText(QString("(%1 %2) %3").arg(cmi.count).arg(tr("Files")).arg(misc::friendlyUnit(cmi.size)));
|
||||
|
||||
if (mFileItems.empty() == false) {
|
||||
std::list<SubFileItem *>::iterator it;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue