mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-14 18:34:29 -05: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
@ -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) {
|
||||
|
@ -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>
|
||||
|
BIN
retroshare-gui/src/gui/images/mail-signature-unknown.png
Normal file
BIN
retroshare-gui/src/gui/images/mail-signature-unknown.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 722 B |
BIN
retroshare-gui/src/gui/images/mail-signed.png
Normal file
BIN
retroshare-gui/src/gui/images/mail-signed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 518 B |
Loading…
Reference in New Issue
Block a user