Fixed Tooltip on Outbox #121

Store Max Results spinbox #130
This commit is contained in:
defnax 2015-10-28 01:59:19 +01:00
parent 2cc0f6dcd7
commit eefc8d3393
2 changed files with 14 additions and 1 deletions

View File

@ -1237,8 +1237,16 @@ void MessagesDialog::insertMessages()
else if(it->msgflags & RS_MSG_DISTANT)
{
item->setIcon(COLUMN_SIGNATURE, QIcon(":/images/blue_lock_open.png")) ;
item->setToolTip(COLUMN_SIGNATURE, tr("This message comes from a distant person.")) ;
item->setIcon(COLUMN_SUBJECT, QIcon(":/images/message-mail-read.png")) ;
if (msgbox == RS_MSG_INBOX )
{
item->setToolTip(COLUMN_SIGNATURE, tr("This message comes from a distant person.")) ;
}
else if (msgbox == RS_MSG_OUTBOX)
{
item->setToolTip(COLUMN_SIGNATURE, tr("This message goes to a distant person.")) ;
}
if(it->msgflags & RS_MSG_SIGNED)
{

View File

@ -244,6 +244,9 @@ void SearchDialog::processSettings(bool bLoad)
// state of splitter
ui.splitter->restoreState(Settings->value("Splitter").toByteArray());
ui._max_results_SB->setValue(Settings->value("MaxResults").toInt());
} else {
// save settings
@ -252,6 +255,8 @@ void SearchDialog::processSettings(bool bLoad)
// state of splitter
Settings->setValue("Splitter", ui.splitter->saveState());
Settings->setValue("MaxResults", ui._max_results_SB->value());
}
Settings->endGroup();