From 665b7fbf47156424697e4acc8c8eb48419c2cd67 Mon Sep 17 00:00:00 2001 From: defnax Date: Sat, 7 Apr 2012 11:19:42 +0000 Subject: [PATCH] removed not needed button git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5083 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- .../src/gui/connect/FriendRequest.cpp | 20 ------- .../src/gui/connect/FriendRequest.ui | 52 +++++-------------- 2 files changed, 13 insertions(+), 59 deletions(-) diff --git a/retroshare-gui/src/gui/connect/FriendRequest.cpp b/retroshare-gui/src/gui/connect/FriendRequest.cpp index 7d83f0ac7..a64f98843 100644 --- a/retroshare-gui/src/gui/connect/FriendRequest.cpp +++ b/retroshare-gui/src/gui/connect/FriendRequest.cpp @@ -57,7 +57,6 @@ FriendRequest::FriendRequest(const std::string& id, QWidget *parent, Qt::WFlags connect(ui.applyButton, SIGNAL(clicked()), this, SLOT(applyDialog())); connect(ui.cancelButton, SIGNAL(clicked()), this, SLOT(close())); - connect(ui.signKeyButton, SIGNAL(clicked()), this, SLOT(signGPGKey())); load(); } @@ -90,25 +89,6 @@ void FriendRequest::load() ui.avatar->setId(mId, false); - - if (detail.accept_connection) { - ui.signGPGKeyCheckBox->hide(); - //connection already accepted, propose to sign gpg key - if (!detail.ownsign) { - ui.signKeyButton->show(); - } else { - ui.signKeyButton->hide(); - } - } else { - ui.signKeyButton->hide(); - if (!detail.ownsign) { - ui.signGPGKeyCheckBox->show(); - ui.signGPGKeyCheckBox->setChecked(false); - } else { - ui.signGPGKeyCheckBox->hide(); - } - } - //web of trust if (detail.trustLvl == GPGME_VALIDITY_ULTIMATE) { //trust is ultimate, it means it's one of our own keys diff --git a/retroshare-gui/src/gui/connect/FriendRequest.ui b/retroshare-gui/src/gui/connect/FriendRequest.ui index 1d91f1ced..518138f99 100644 --- a/retroshare-gui/src/gui/connect/FriendRequest.ui +++ b/retroshare-gui/src/gui/connect/FriendRequest.ui @@ -6,8 +6,8 @@ 0 0 - 414 - 367 + 372 + 328 @@ -106,6 +106,9 @@ p, li { white-space: pre-wrap; } QFrame::Raised + + 6 + @@ -381,40 +384,18 @@ border-image: url(:/images/btn_blue_hover.png) 4; - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;"> -<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Signing a friend's key is a way to express your trust into this friend, to your other friends. Besides, only signed peers will receive information about your other trusted friends.</p> -<p align="justify" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p> -<p align="justify" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Signing a key cannot be undone, so do it wisely.</p></body></html> + + + + Qt::Vertical - - Sign GPG key - - - - :/images/view-certificate-sign-32.png:/images/view-certificate-sign-32.png - - + - 32 - 32 + 20 + 2 - - false - - - Qt::ToolButtonIconOnly - - - true - - + @@ -436,13 +417,6 @@ p, li { white-space: pre-wrap; } - - - - - - -