mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04: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_SUBJECT, 250);
|
||||||
msgwheader->resizeSection (COLUMN_UNREAD, 16);
|
msgwheader->resizeSection (COLUMN_UNREAD, 16);
|
||||||
msgwheader->resizeSection (COLUMN_FROM, 140);
|
msgwheader->resizeSection (COLUMN_FROM, 140);
|
||||||
msgwheader->resizeSection (COLUMN_SIGNATURE, 16);
|
msgwheader->resizeSection (COLUMN_SIGNATURE, 24);
|
||||||
msgwheader->resizeSection (COLUMN_DATE, 140);
|
msgwheader->resizeSection (COLUMN_DATE, 140);
|
||||||
msgwheader->resizeSection (COLUMN_STAR, 16);
|
msgwheader->resizeSection (COLUMN_STAR, 16);
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ MessagesDialog::MessagesDialog(QWidget *parent)
|
|||||||
msgwheader->setResizeMode (COLUMN_UNREAD, QHeaderView::Fixed);
|
msgwheader->setResizeMode (COLUMN_UNREAD, QHeaderView::Fixed);
|
||||||
msgwheader->setResizeMode (COLUMN_SIGNATURE, QHeaderView::Fixed);
|
msgwheader->setResizeMode (COLUMN_SIGNATURE, QHeaderView::Fixed);
|
||||||
msgwheader->resizeSection (COLUMN_UNREAD, 24);
|
msgwheader->resizeSection (COLUMN_UNREAD, 24);
|
||||||
msgwheader->resizeSection (COLUMN_SIGNATURE, 16);
|
msgwheader->resizeSection (COLUMN_SIGNATURE, 24);
|
||||||
msgwheader->resizeSection (COLUMN_STAR, 24);
|
msgwheader->resizeSection (COLUMN_STAR, 24);
|
||||||
msgwheader->setResizeMode (COLUMN_STAR, QHeaderView::Fixed);
|
msgwheader->setResizeMode (COLUMN_STAR, QHeaderView::Fixed);
|
||||||
msgwheader->setStretchLastSection(false);
|
msgwheader->setStretchLastSection(false);
|
||||||
@ -1215,13 +1215,22 @@ void MessagesDialog::insertMessages()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(it->msgflags & RS_MSG_ENCRYPTED)
|
if(it->msgflags & RS_MSG_ENCRYPTED)
|
||||||
|
{
|
||||||
item[COLUMN_SIGNATURE]->setIcon(QIcon(":/images/blue_lock.png")) ;
|
item[COLUMN_SIGNATURE]->setIcon(QIcon(":/images/blue_lock.png")) ;
|
||||||
|
item[COLUMN_SIGNATURE]->setToolTip(tr("This message is encrypted. Right click to decrypt it.")) ;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
if(it->msgflags & RS_MSG_SIGNED)
|
if(it->msgflags & RS_MSG_SIGNED)
|
||||||
if(it->msgflags & RS_MSG_SIGNATURE_CHECKS)
|
if(it->msgflags & RS_MSG_SIGNATURE_CHECKS)
|
||||||
|
{
|
||||||
item[COLUMN_SIGNATURE]->setIcon(QIcon(":/images/stock_signature_ok.png")) ;
|
item[COLUMN_SIGNATURE]->setIcon(QIcon(":/images/stock_signature_ok.png")) ;
|
||||||
|
item[COLUMN_SIGNATURE]->setToolTip(tr("This message was signed and the signature checks")) ;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
item[COLUMN_SIGNATURE]->setIcon(QIcon(":/images/stock_signature_bad.png")) ;
|
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
|
else
|
||||||
item[COLUMN_SIGNATURE]->setIcon(QIcon()) ;
|
item[COLUMN_SIGNATURE]->setIcon(QIcon()) ;
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/" >
|
<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/anonymous_128_blue.png</file>
|
||||||
<file>images/browsable_128_green.png</file>
|
<file>images/browsable_128_green.png</file>
|
||||||
<file>images/browsable_128_blue.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>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>796</width>
|
<width>796</width>
|
||||||
<height>624</height>
|
<height>682</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -634,6 +634,16 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@ -839,7 +849,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>796</width>
|
<width>796</width>
|
||||||
<height>20</height>
|
<height>25</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
Reference in New Issue
Block a user