Added to display filesize on ChannelMsgItem and moved the filelabel to the right side

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3664 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-10-11 00:48:11 +00:00
parent 3681c8a2f5
commit 1ce0c822ba
2 changed files with 182 additions and 170 deletions

View file

@ -27,6 +27,7 @@
#include "FeedHolder.h"
#include "SubFileItem.h"
#include "gui/notifyqt.h"
#include "util/misc.h"
#include <retroshare/rschannels.h>
@ -65,6 +66,7 @@ ChanMsgItem::ChanMsgItem(FeedHolder *parent, uint32_t feedId, std::string chanId
playButton->hide();
titleLabel->setMinimumWidth(100);
subjectLabel->setMinimumWidth(100);
small();
updateItemStatic();
@ -160,7 +162,7 @@ void ChanMsgItem::updateItemStatic()
{
std::ostringstream out;
out << "(" << cmi.count << " Files)";
filelabel->setText(QString::fromStdString(out.str()));
filelabel->setText(QString::fromStdString(out.str()) + " " + misc::friendlyUnit(cmi.size));
}