mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 03:22:34 -04:00
Set icons for Signed and none signed Forum Messages, set a default minimum size for thread items.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3045 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9eb5af1f0b
commit
2088ff808d
4 changed files with 8 additions and 0 deletions
|
@ -784,6 +784,7 @@ void ForumsDialog::insertThreads()
|
|||
rsForums->getForumMessage(fId,tit->msgId,msginfo) ;
|
||||
|
||||
item->setText(COLUMN_TITLE, QString::fromStdWString(tit->title));
|
||||
item->setSizeHint(COLUMN_TITLE, QSize( 18,18 ) );
|
||||
|
||||
if (rsPeers->getPeerName(msginfo.srcId) !="")
|
||||
{
|
||||
|
@ -797,10 +798,12 @@ void ForumsDialog::insertThreads()
|
|||
if (msginfo.msgflags & RS_DISTRIB_AUTHEN_REQ)
|
||||
{
|
||||
item->setText(COLUMN_SIGNED, tr("signed"));
|
||||
item->setIcon(COLUMN_SIGNED,(QIcon(":/images/mail-signed.png")));
|
||||
}
|
||||
else
|
||||
{
|
||||
item->setText(COLUMN_SIGNED, tr("none"));
|
||||
item->setIcon(COLUMN_SIGNED,(QIcon(":/images/mail-signature-unknown.png")));
|
||||
}
|
||||
|
||||
if (nFilterColumn == COLUMN_CONTENT) {
|
||||
|
@ -876,6 +879,7 @@ void ForumsDialog::insertThreads()
|
|||
rsForums->getForumMessage(fId,mit->msgId,msginfo) ;
|
||||
|
||||
child->setText(COLUMN_TITLE, QString::fromStdWString(mit->title));
|
||||
child->setSizeHint(COLUMN_TITLE, QSize( 17,17 ) );
|
||||
|
||||
if (rsPeers->getPeerName(msginfo.srcId) !="")
|
||||
{
|
||||
|
@ -889,10 +893,12 @@ void ForumsDialog::insertThreads()
|
|||
if (msginfo.msgflags & RS_DISTRIB_AUTHEN_REQ)
|
||||
{
|
||||
child->setText(COLUMN_SIGNED, tr("signed"));
|
||||
child->setIcon(COLUMN_SIGNED,(QIcon(":/images/mail-signed.png")));
|
||||
}
|
||||
else
|
||||
{
|
||||
child->setText(COLUMN_SIGNED, tr("none"));
|
||||
child->setIcon(COLUMN_SIGNED,(QIcon(":/images/mail-signature-unknown.png")));
|
||||
}
|
||||
|
||||
if (nFilterColumn == COLUMN_CONTENT) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue