aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-11-19 15:15:56 +0000
committersaturneric <[email protected]>2024-11-19 15:15:56 +0000
commit29b46733fedf884cfac1f77888e9310f30631718 (patch)
treea984e97739ab931c08da6c7cdec42a20921e7476 /src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp
parentfeat: remove unused codes (diff)
downloadGpgFrontend-29b46733fedf884cfac1f77888e9310f30631718.tar.gz
GpgFrontend-29b46733fedf884cfac1f77888e9310f30631718.zip
feat: add ui some restrictions when primary key not exists
Diffstat (limited to '')
-rw-r--r--src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp b/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp
index 76eb94c0..6cd423fc 100644
--- a/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp
+++ b/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp
@@ -51,25 +51,25 @@ KeyNewUIDDialog::KeyNewUIDDialog(int channel, const KeyId& key_id,
create_button_ = new QPushButton("Create");
error_label_ = new QLabel();
- auto gridLayout = new QGridLayout();
- gridLayout->addWidget(new QLabel(tr("Name")), 0, 0);
- gridLayout->addWidget(new QLabel(tr("Email")), 1, 0);
- gridLayout->addWidget(new QLabel(tr("Comment")), 2, 0);
+ auto grid_layout = new QGridLayout();
+ grid_layout->addWidget(new QLabel(tr("Name")), 0, 0);
+ grid_layout->addWidget(new QLabel(tr("Email")), 1, 0);
+ grid_layout->addWidget(new QLabel(tr("Comment")), 2, 0);
- gridLayout->addWidget(name_, 0, 1);
- gridLayout->addWidget(email_, 1, 1);
- gridLayout->addWidget(comment_, 2, 1);
+ grid_layout->addWidget(name_, 0, 1);
+ grid_layout->addWidget(email_, 1, 1);
+ grid_layout->addWidget(comment_, 2, 1);
- gridLayout->addWidget(create_button_, 3, 0, 1, 2);
- gridLayout->addWidget(
+ grid_layout->addWidget(create_button_, 3, 0, 1, 2);
+ grid_layout->addWidget(
new QLabel(tr("Notice: The New UID Created will be set as Primary.")), 4,
0, 1, 2);
- gridLayout->addWidget(error_label_, 5, 0, 1, 2);
+ grid_layout->addWidget(error_label_, 5, 0, 1, 2);
connect(create_button_, &QPushButton::clicked, this,
&KeyNewUIDDialog::slot_create_new_uid);
- this->setLayout(gridLayout);
+ this->setLayout(grid_layout);
this->setWindowTitle(tr("Create New UID"));
this->setAttribute(Qt::WA_DeleteOnClose, true);
this->setModal(true);