From dad779cda432cd38d956955175138743746baa44 Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 23 Jan 2009 14:45:15 +0000 Subject: [PATCH] added a "Trusts me" text field to the peer details dialog git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@940 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- .../src/gui/connect/ConfCertDialog.cpp | 5 + .../src/gui/connect/ConfCertDialog.ui | 111 ++++++++---------- 2 files changed, 54 insertions(+), 62 deletions(-) diff --git a/retroshare-gui/src/gui/connect/ConfCertDialog.cpp b/retroshare-gui/src/gui/connect/ConfCertDialog.cpp index 6eb73c430..1159648a6 100644 --- a/retroshare-gui/src/gui/connect/ConfCertDialog.cpp +++ b/retroshare-gui/src/gui/connect/ConfCertDialog.cpp @@ -115,6 +115,11 @@ void ConfCertDialog::loadDialog() ui.trustLvl->setText(QString::fromStdString(RsPeerTrustString(detail.trustLvl))); + if(rsPeers->isOnline(detail.id) || rsPeers->isTrustingMe(detail.id)) + ui._isTrustingMeTF->setText("Yes"); + else + ui._isTrustingMeTF->setText("No"); + if (detail.ownsign) { ui.signBox -> setCheckState(Qt::Checked); diff --git a/retroshare-gui/src/gui/connect/ConfCertDialog.ui b/retroshare-gui/src/gui/connect/ConfCertDialog.ui index 559801512..17df5287e 100644 --- a/retroshare-gui/src/gui/connect/ConfCertDialog.ui +++ b/retroshare-gui/src/gui/connect/ConfCertDialog.ui @@ -502,20 +502,22 @@ Details - :/images/rstray3.png + + :/images/rstray3.png:/images/rstray3.png - 0 + 1 Details - :/images/peerdetails_16x16.png + + :/images/peerdetails_16x16.png:/images/peerdetails_16x16.png @@ -615,36 +617,15 @@ 6 - - 0 - - - 0 - - - 0 - - + 0 - + 0 - - 0 - - - 0 - - - 0 - - - 6 - - + 6 @@ -674,22 +655,10 @@ - + 0 - - 0 - - - 0 - - - 0 - - - 6 - - + 6 @@ -749,35 +718,53 @@ Trust Settings - - + + Trust Settings - - - - - Trust Level - - + + + + + + + Trust Level + + + + + + + true + + + + + + + Trusting me + + + + + + + true + + + + - - - - true - - - - + Sign The Certificate - + Trust Their Signature @@ -787,12 +774,12 @@ - + Qt::Vertical - + 451 131 @@ -811,7 +798,7 @@ Qt::Horizontal - + 311 20