Added Edit Identity button to People view

This commit is contained in:
defnax 2021-02-20 14:24:59 +01:00
parent 49216552df
commit b461d3c782
2 changed files with 15 additions and 4 deletions

View File

@ -252,10 +252,12 @@ IdDialog::IdDialog(QWidget *parent)
connect(ui->ownOpinion_CB, SIGNAL(currentIndexChanged(int)), this, SLOT(modifyReputation()));
connect(ui->inviteButton, SIGNAL(clicked()), this, SLOT(sendInvite()));
connect(ui->editButton, SIGNAL(clicked()), this, SLOT(editIdentity()));
connect( ui->idTreeWidget, &RSTreeWidget::itemDoubleClicked,
this, &IdDialog::chatIdentityItem );
ui->editButton->hide();
ui->avlabel_Circles->setPixmap(FilesDefs::getPixmapFromQtResourcePath(":/icons/png/circles.png"));
@ -1810,7 +1812,8 @@ void IdDialog::loadIdentity(RsGxsIdGroup data)
// ui->editIdentity->setEnabled(true);
// ui->removeIdentity->setEnabled(true);
ui->chatIdentity->setEnabled(false);
ui->inviteButton->setEnabled(false);
ui->inviteButton->hide();
ui->editButton->show();
}
else
{
@ -1820,7 +1823,8 @@ void IdDialog::loadIdentity(RsGxsIdGroup data)
// ui->editIdentity->setEnabled(false);
// ui->removeIdentity->setEnabled(false);
ui->chatIdentity->setEnabled(true);
ui->inviteButton->setEnabled(true);
ui->inviteButton->show();
ui->editButton->hide();
}
ui->autoBanIdentities_CB->setChecked(rsReputations->isNodeBanned(data.mPgpId));

View File

@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>987</width>
<width>800</width>
<height>584</height>
</rect>
</property>
@ -287,7 +287,7 @@
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<x>-155</x>
<y>0</y>
<width>634</width>
<height>523</height>
@ -609,6 +609,13 @@ border-image: url(:/images/closepressed.png)
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="editButton">
<property name="text">
<string>Edit Identity</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="avatarOpinionHLayout">
<property name="spacing">