From aa285ccfef022eacf6814253c2dd4b1d5941ea06 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Wed, 22 Dec 2010 23:02:21 +0000 Subject: [PATCH] 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 --- retroshare-gui/src/gui/PeersDialog.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/PeersDialog.cpp b/retroshare-gui/src/gui/PeersDialog.cpp index 205ff362b..f1b08b04d 100644 --- a/retroshare-gui/src/gui/PeersDialog.cpp +++ b/retroshare-gui/src/gui/PeersDialog.cpp @@ -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) {