mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-21 12:54:26 -04:00
Added Edit Identity button to People view
This commit is contained in:
parent
49216552df
commit
b461d3c782
2 changed files with 15 additions and 4 deletions
|
@ -252,10 +252,12 @@ IdDialog::IdDialog(QWidget *parent)
|
||||||
connect(ui->ownOpinion_CB, SIGNAL(currentIndexChanged(int)), this, SLOT(modifyReputation()));
|
connect(ui->ownOpinion_CB, SIGNAL(currentIndexChanged(int)), this, SLOT(modifyReputation()));
|
||||||
|
|
||||||
connect(ui->inviteButton, SIGNAL(clicked()), this, SLOT(sendInvite()));
|
connect(ui->inviteButton, SIGNAL(clicked()), this, SLOT(sendInvite()));
|
||||||
|
connect(ui->editButton, SIGNAL(clicked()), this, SLOT(editIdentity()));
|
||||||
|
|
||||||
connect( ui->idTreeWidget, &RSTreeWidget::itemDoubleClicked,
|
connect( ui->idTreeWidget, &RSTreeWidget::itemDoubleClicked,
|
||||||
this, &IdDialog::chatIdentityItem );
|
this, &IdDialog::chatIdentityItem );
|
||||||
|
|
||||||
|
ui->editButton->hide();
|
||||||
|
|
||||||
ui->avlabel_Circles->setPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/png/circles.png"));
|
ui->avlabel_Circles->setPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/png/circles.png"));
|
||||||
|
|
||||||
|
@ -1810,7 +1812,8 @@ void IdDialog::loadIdentity(RsGxsIdGroup data)
|
||||||
// ui->editIdentity->setEnabled(true);
|
// ui->editIdentity->setEnabled(true);
|
||||||
// ui->removeIdentity->setEnabled(true);
|
// ui->removeIdentity->setEnabled(true);
|
||||||
ui->chatIdentity->setEnabled(false);
|
ui->chatIdentity->setEnabled(false);
|
||||||
ui->inviteButton->setEnabled(false);
|
ui->inviteButton->hide();
|
||||||
|
ui->editButton->show();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1820,7 +1823,8 @@ void IdDialog::loadIdentity(RsGxsIdGroup data)
|
||||||
// ui->editIdentity->setEnabled(false);
|
// ui->editIdentity->setEnabled(false);
|
||||||
// ui->removeIdentity->setEnabled(false);
|
// ui->removeIdentity->setEnabled(false);
|
||||||
ui->chatIdentity->setEnabled(true);
|
ui->chatIdentity->setEnabled(true);
|
||||||
ui->inviteButton->setEnabled(true);
|
ui->inviteButton->show();
|
||||||
|
ui->editButton->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->autoBanIdentities_CB->setChecked(rsReputations->isNodeBanned(data.mPgpId));
|
ui->autoBanIdentities_CB->setChecked(rsReputations->isNodeBanned(data.mPgpId));
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>987</width>
|
<width>800</width>
|
||||||
<height>584</height>
|
<height>584</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
@ -287,7 +287,7 @@
|
||||||
<widget class="QWidget" name="scrollAreaWidgetContents">
|
<widget class="QWidget" name="scrollAreaWidgetContents">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>-155</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>634</width>
|
<width>634</width>
|
||||||
<height>523</height>
|
<height>523</height>
|
||||||
|
@ -609,6 +609,13 @@ border-image: url(:/images/closepressed.png)
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="editButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Edit Identity</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="avatarOpinionHLayout">
|
<layout class="QHBoxLayout" name="avatarOpinionHLayout">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue