mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-30 04:16:40 -05:00
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:
parent
61f5ff5180
commit
fb47f06d24
2 changed files with 219 additions and 196 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue