mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
added signature icons
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6554 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c34ede4b1c
commit
d7a1d3fe97
@ -205,7 +205,7 @@ MessagesDialog::MessagesDialog(QWidget *parent)
|
||||
msgwheader->resizeSection (COLUMN_SUBJECT, 250);
|
||||
msgwheader->resizeSection (COLUMN_UNREAD, 16);
|
||||
msgwheader->resizeSection (COLUMN_FROM, 140);
|
||||
msgwheader->resizeSection (COLUMN_SIGNATURE, 16);
|
||||
msgwheader->resizeSection (COLUMN_SIGNATURE, 24);
|
||||
msgwheader->resizeSection (COLUMN_DATE, 140);
|
||||
msgwheader->resizeSection (COLUMN_STAR, 16);
|
||||
|
||||
@ -247,7 +247,7 @@ MessagesDialog::MessagesDialog(QWidget *parent)
|
||||
msgwheader->setResizeMode (COLUMN_UNREAD, QHeaderView::Fixed);
|
||||
msgwheader->setResizeMode (COLUMN_SIGNATURE, QHeaderView::Fixed);
|
||||
msgwheader->resizeSection (COLUMN_UNREAD, 24);
|
||||
msgwheader->resizeSection (COLUMN_SIGNATURE, 16);
|
||||
msgwheader->resizeSection (COLUMN_SIGNATURE, 24);
|
||||
msgwheader->resizeSection (COLUMN_STAR, 24);
|
||||
msgwheader->setResizeMode (COLUMN_STAR, QHeaderView::Fixed);
|
||||
msgwheader->setStretchLastSection(false);
|
||||
@ -1215,13 +1215,22 @@ void MessagesDialog::insertMessages()
|
||||
}
|
||||
|
||||
if(it->msgflags & RS_MSG_ENCRYPTED)
|
||||
{
|
||||
item[COLUMN_SIGNATURE]->setIcon(QIcon(":/images/blue_lock.png")) ;
|
||||
item[COLUMN_SIGNATURE]->setToolTip(tr("This message is encrypted. Right click to decrypt it.")) ;
|
||||
}
|
||||
else
|
||||
if(it->msgflags & RS_MSG_SIGNED)
|
||||
if(it->msgflags & RS_MSG_SIGNATURE_CHECKS)
|
||||
{
|
||||
item[COLUMN_SIGNATURE]->setIcon(QIcon(":/images/stock_signature_ok.png")) ;
|
||||
item[COLUMN_SIGNATURE]->setToolTip(tr("This message was signed and the signature checks")) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
item[COLUMN_SIGNATURE]->setIcon(QIcon(":/images/stock_signature_bad.png")) ;
|
||||
item[COLUMN_SIGNATURE]->setToolTip(tr("This message was signed but the signature doesn't check")) ;
|
||||
}
|
||||
else
|
||||
item[COLUMN_SIGNATURE]->setIcon(QIcon()) ;
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
<RCC>
|
||||
<qresource prefix="/" >
|
||||
<file>images/anonymous_128_green.png</file>
|
||||
<file>images/blue_lock.png</file>
|
||||
<file>images/stock_signature_bad.png</file>
|
||||
<file>images/stock_signature_ok.png</file>
|
||||
<file>images/anonymous_128_blue.png</file>
|
||||
<file>images/browsable_128_green.png</file>
|
||||
<file>images/browsable_128_blue.png</file>
|
||||
|
BIN
retroshare-gui/src/gui/images/blue_lock.png
Normal file
BIN
retroshare-gui/src/gui/images/blue_lock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
retroshare-gui/src/gui/images/stock_signature_bad.png
Normal file
BIN
retroshare-gui/src/gui/images/stock_signature_bad.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
retroshare-gui/src/gui/images/stock_signature_ok.png
Normal file
BIN
retroshare-gui/src/gui/images/stock_signature_ok.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>796</width>
|
||||
<height>624</height>
|
||||
<height>682</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@ -634,6 +634,16 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="13">
|
||||
<widget class="QCheckBox" name="signMessage_CB">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p align="justify">Check this to cryptographically sign your message. This is only recommended for distant messages, since messages for your connected friends cannot be spoofed.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Sign message</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
@ -839,7 +849,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>796</width>
|
||||
<height>20</height>
|
||||
<height>25</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
|
Loading…
Reference in New Issue
Block a user