mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-24 14:23:36 -05:00
Removed useless tooltips of the gpg items in PeersDialog.
Show the state of the ssl item as tooltip, when the status column is hidden and "Hide state" is switched on. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3931 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a66d5f0f8f
commit
aa285ccfef
@ -918,7 +918,13 @@ void PeersDialog::insertPeers()
|
||||
}
|
||||
}
|
||||
sslItem->setText( COLUMN_NAME, sText);
|
||||
sslItem->setToolTip( COLUMN_NAME, sText);
|
||||
|
||||
if (useStatusColumn == false && showState == false) {
|
||||
/* Show the state as tooltip */
|
||||
sslItem->setToolTip(COLUMN_NAME, QString::fromStdString(sslDetail.autoconnect));
|
||||
} else {
|
||||
sslItem->setToolTip(COLUMN_NAME, "");
|
||||
}
|
||||
|
||||
// sort location
|
||||
sslItem->setData(COLUMN_STATE, ROLE_SORT, sText);
|
||||
@ -1045,7 +1051,7 @@ void PeersDialog::insertPeers()
|
||||
gpgItemText += " [" + StatusDefs::name(bestRSState) + "]";
|
||||
}
|
||||
|
||||
gpgItem->setToolTip(COLUMN_NAME, StatusDefs::tooltip(bestRSState));
|
||||
// gpgItem->setToolTip(COLUMN_NAME, StatusDefs::tooltip(bestRSState));
|
||||
gpgItem->setData(COLUMN_NAME, ROLE_SORT, BuildStateSortString(true, gpgItemText, bestPeerState));
|
||||
gpgItem->setData(COLUMN_STATE, ROLE_SORT, BuildStateSortString(true, gpgItem->text(COLUMN_NAME), bestPeerState));
|
||||
} else if (gpg_online) {
|
||||
|
Loading…
Reference in New Issue
Block a user