mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 01:55:19 -04:00
Hide by default key length combobox, for advanced users get visible via advanced checkbox
Set stylesheet for a Info Label Changed Window icon to higher resolution git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8096 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7ef30432f2
commit
6b584e9ae9
3 changed files with 21 additions and 12 deletions
|
@ -119,7 +119,7 @@ GenCertDialog::GenCertDialog(bool onlyGenerateIdentity, QWidget *parent)
|
|||
ui.headerFrame->setHeaderText(tr("Create a new Identity"));
|
||||
|
||||
connect(ui.new_gpg_key_checkbox, SIGNAL(clicked()), this, SLOT(newGPGKeyGenUiSetup()));
|
||||
connect(ui.hidden_checkbox, SIGNAL(clicked()), this, SLOT(hiddenUiSetup()));
|
||||
connect(ui.adv_checkbox, SIGNAL(clicked()), this, SLOT(hiddenUiSetup()));
|
||||
|
||||
connect(ui.genButton, SIGNAL(clicked()), this, SLOT(genPerson()));
|
||||
connect(ui.importIdentity_PB, SIGNAL(clicked()), this, SLOT(importIdentity()));
|
||||
|
@ -264,8 +264,8 @@ void GenCertDialog::newGPGKeyGenUiSetup() {
|
|||
ui.genButton->setVisible(true);
|
||||
ui.genprofileinfo_label->hide();
|
||||
ui.header_label->show();
|
||||
ui.keylength_label->show();
|
||||
ui.keylength_comboBox->show();
|
||||
//ui.keylength_label->show();
|
||||
//ui.keylength_comboBox->show();
|
||||
} else {
|
||||
genNewGPGKey = false;
|
||||
ui.name_label->hide();
|
||||
|
@ -295,13 +295,15 @@ void GenCertDialog::newGPGKeyGenUiSetup() {
|
|||
void GenCertDialog::hiddenUiSetup()
|
||||
{
|
||||
|
||||
if (ui.hidden_checkbox->isChecked())
|
||||
if (ui.adv_checkbox->isChecked())
|
||||
{
|
||||
ui.hiddenaddr_input->show();
|
||||
ui.hiddenaddr_label->show();
|
||||
ui.label_hiddenaddr2->show();
|
||||
ui.hiddenport_label->show();
|
||||
ui.hiddenport_spinBox->show();
|
||||
ui.keylength_label->show();
|
||||
ui.keylength_comboBox->show();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -310,6 +312,8 @@ void GenCertDialog::hiddenUiSetup()
|
|||
ui.label_hiddenaddr2->hide();
|
||||
ui.hiddenport_label->hide();
|
||||
ui.hiddenport_spinBox->hide();
|
||||
ui.keylength_label->hide();
|
||||
ui.keylength_comboBox->hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -364,7 +368,7 @@ void GenCertDialog::genPerson()
|
|||
RsPgpId PGPId;
|
||||
bool isHiddenLoc = false;
|
||||
|
||||
if (ui.hidden_checkbox->isChecked())
|
||||
if (ui.adv_checkbox->isChecked())
|
||||
{
|
||||
std::string hl = ui.hiddenaddr_input->text().toStdString();
|
||||
uint16_t port = ui.hiddenport_spinBox->value();
|
||||
|
@ -439,7 +443,7 @@ void GenCertDialog::genPerson()
|
|||
ui.genButton->hide();
|
||||
ui.importIdentity_PB->hide();
|
||||
ui.genprofileinfo_label->hide();
|
||||
ui.hidden_checkbox->hide();
|
||||
ui.adv_checkbox->hide();
|
||||
ui.keylength_label->hide();
|
||||
ui.keylength_comboBox->hide();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue