mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-26 01:31:30 -05:00
removed not needed button
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5083 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
70af1eccf5
commit
665b7fbf47
@ -57,7 +57,6 @@ FriendRequest::FriendRequest(const std::string& id, QWidget *parent, Qt::WFlags
|
|||||||
|
|
||||||
connect(ui.applyButton, SIGNAL(clicked()), this, SLOT(applyDialog()));
|
connect(ui.applyButton, SIGNAL(clicked()), this, SLOT(applyDialog()));
|
||||||
connect(ui.cancelButton, SIGNAL(clicked()), this, SLOT(close()));
|
connect(ui.cancelButton, SIGNAL(clicked()), this, SLOT(close()));
|
||||||
connect(ui.signKeyButton, SIGNAL(clicked()), this, SLOT(signGPGKey()));
|
|
||||||
|
|
||||||
load();
|
load();
|
||||||
}
|
}
|
||||||
@ -90,25 +89,6 @@ void FriendRequest::load()
|
|||||||
|
|
||||||
ui.avatar->setId(mId, false);
|
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
|
//web of trust
|
||||||
if (detail.trustLvl == GPGME_VALIDITY_ULTIMATE) {
|
if (detail.trustLvl == GPGME_VALIDITY_ULTIMATE) {
|
||||||
//trust is ultimate, it means it's one of our own keys
|
//trust is ultimate, it means it's one of our own keys
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>414</width>
|
<width>372</width>
|
||||||
<height>367</height>
|
<height>328</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -106,6 +106,9 @@ p, li { white-space: pre-wrap; }
|
|||||||
<enum>QFrame::Raised</enum>
|
<enum>QFrame::Raised</enum>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<spacer name="horizontalSpacer_2">
|
<spacer name="horizontalSpacer_2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@ -381,40 +384,18 @@ border-image: url(:/images/btn_blue_hover.png) 4;
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" rowspan="2">
|
<item row="2" column="0" colspan="3">
|
||||||
<widget class="QToolButton" name="signKeyButton">
|
<spacer name="verticalSpacer">
|
||||||
<property name="toolTip">
|
<property name="orientation">
|
||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<enum>Qt::Vertical</enum>
|
||||||
<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></string>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="sizeHint" stdset="0">
|
||||||
<string>Sign GPG key</string>
|
|
||||||
</property>
|
|
||||||
<property name="icon">
|
|
||||||
<iconset resource="../images.qrc">
|
|
||||||
<normaloff>:/images/view-certificate-sign-32.png</normaloff>:/images/view-certificate-sign-32.png</iconset>
|
|
||||||
</property>
|
|
||||||
<property name="iconSize">
|
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>20</width>
|
||||||
<height>32</height>
|
<height>2</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="checked">
|
</spacer>
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="toolButtonStyle">
|
|
||||||
<enum>Qt::ToolButtonIconOnly</enum>
|
|
||||||
</property>
|
|
||||||
<property name="autoRaise">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
@ -436,13 +417,6 @@ p, li { white-space: pre-wrap; }
|
|||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../images.qrc"/>
|
<include location="../images.qrc"/>
|
||||||
<include location="../images.qrc"/>
|
|
||||||
<include location="../images.qrc"/>
|
|
||||||
<include location="../images.qrc"/>
|
|
||||||
<include location="../images.qrc"/>
|
|
||||||
<include location="../images.qrc"/>
|
|
||||||
<include location="../images.qrc"/>
|
|
||||||
<include location="../images.qrc"/>
|
|
||||||
</resources>
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user