Some Layout changes for MsgItem

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5074 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2012-04-02 15:57:44 +00:00
parent 61f5ff5180
commit fb47f06d24
2 changed files with 219 additions and 196 deletions

View file

@ -84,13 +84,12 @@ void MsgItem::updateItemStatic()
avatar->setId(mPeerId, false);
QString title;
QString timestamp;
QString srcName = QString::fromUtf8(rsPeers->getPeerName(mi.srcId).c_str());
{
QDateTime qtime;
qtime.setTime_t(mi.ts);
timestamp = qtime.toString("yyyy-MM-dd hh:mm:ss");
timestampLabel->setText(qtime.toString("dd.MMMM yyyy hh:mm:ss"));
}
if (!mIsHome)
@ -122,7 +121,7 @@ void MsgItem::updateItemStatic()
break;
}
}
title += srcName + " @ " + timestamp;
title += srcName;
titleLabel->setText(title);
subjectLabel->setText(QString::fromStdWString(mi.title));