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:
defnax 2010-05-31 23:02:45 +00:00
parent 9eb5af1f0b
commit 2088ff808d
4 changed files with 8 additions and 0 deletions

View File

@ -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) {

View File

@ -245,6 +245,8 @@
<file>images/logobar/logo_bar_start.png</file>
<file>images/logobar/rslogo.png</file>
<file>images/logobar/rslogo2.png</file>
<file>images/mail-signed.png</file>
<file>images/mail-signature-unknown.png</file>
<file>images/mail_delete.png</file>
<file>images/mail_get.png</file>
<file>images/mail_reply.png</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 722 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 518 B