diff options
author | Saturneric <[email protected]> | 2022-02-02 06:47:24 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-02-02 06:47:24 +0000 |
commit | 3780c1baab8562e15eade1c1be25ccebd0e70814 (patch) | |
tree | 0f7984b0725830cad6492bd91a4d6adaf58601c2 /src/ui/dialog/Wizard.cpp | |
parent | <doc>(project): Separate user manual from development documentation. (diff) | |
download | GpgFrontend-3780c1baab8562e15eade1c1be25ccebd0e70814.tar.gz GpgFrontend-3780c1baab8562e15eade1c1be25ccebd0e70814.zip |
<refactor, fix>(ui): Repair and tidy the signal and slot docking
1. Use more modern ways.
2. Repair partial docking.
Diffstat (limited to 'src/ui/dialog/Wizard.cpp')
-rw-r--r-- | src/ui/dialog/Wizard.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/ui/dialog/Wizard.cpp b/src/ui/dialog/Wizard.cpp index 0716d3f8..8d6d6890 100644 --- a/src/ui/dialog/Wizard.cpp +++ b/src/ui/dialog/Wizard.cpp @@ -56,7 +56,7 @@ Wizard::Wizard(QWidget* parent) : QWizard(parent) { } setStartId(next_page_id); - connect(this, SIGNAL(accepted()), this, SLOT(slot_wizard_accepted())); + connect(this, &Wizard::accepted, this, &Wizard::slot_wizard_accepted); } void Wizard::slot_wizard_accepted() { @@ -204,10 +204,6 @@ KeyGenPage::KeyGenPage(QWidget* parent) : QWizardPage(parent) { "docu_keygen.html#content" ">" + QString(_("Offline tutorial")) + "</a>"); - // linkLabel->setOpenExternalLinks(true); - - // connect(linkLabel, SIGNAL(linkActivated(QString)), - // parentWidget()->parentWidget(), SLOT(openHelp(QString))); auto* createKeyButtonBox = new QWidget(this); auto* createKeyButtonBoxLayout = new QHBoxLayout(createKeyButtonBox); @@ -218,8 +214,8 @@ KeyGenPage::KeyGenPage(QWidget* parent) : QWizardPage(parent) { layout->addWidget(topLabel); layout->addWidget(linkLabel); layout->addWidget(createKeyButtonBox); - connect(createKeyButton, SIGNAL(clicked(bool)), this, - SLOT(slot_generate_key_dialog())); + connect(createKeyButton, &QPushButton::clicked, this, + &KeyGenPage::slot_generate_key_dialog); setLayout(layout); } |