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:
thunder2 2010-12-22 23:02:21 +00:00
parent a66d5f0f8f
commit aa285ccfef

View File

@ -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) {