aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/KeyList.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-02-02 06:47:24 +0000
committerSaturneric <[email protected]>2022-02-02 06:47:24 +0000
commit3780c1baab8562e15eade1c1be25ccebd0e70814 (patch)
tree0f7984b0725830cad6492bd91a4d6adaf58601c2 /src/ui/widgets/KeyList.cpp
parent<doc>(project): Separate user manual from development documentation. (diff)
downloadGpgFrontend-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/widgets/KeyList.cpp')
-rw-r--r--src/ui/widgets/KeyList.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp
index 37378529..b9cc30d4 100644
--- a/src/ui/widgets/KeyList.cpp
+++ b/src/ui/widgets/KeyList.cpp
@@ -78,8 +78,9 @@ void KeyList::init() {
// register key database refresh signal
connect(this, &KeyList::SignalRefreshDatabase, SignalStation::GetInstance(),
&SignalStation::SignalKeyDatabaseRefresh);
- connect(SignalStation::GetInstance(), SIGNAL(KeyDatabaseRefresh()), this,
- SLOT(SlotRefresh()));
+ connect(SignalStation::GetInstance(),
+ &SignalStation::SignalKeyDatabaseRefresh, this,
+ &KeyList::SlotRefresh);
connect(ui_->refreshKeyListButton, &QPushButton::clicked, this,
&KeyList::SlotRefresh);
connect(ui_->uncheckButton, &QPushButton::clicked, this,
@@ -342,8 +343,8 @@ void KeyList::dropEvent(QDropEvent* event) {
// Buttons for ok and cancel
auto* buttonBox =
new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
- connect(buttonBox, SIGNAL(accepted()), dialog, SLOT(accept()));
- connect(buttonBox, SIGNAL(rejected()), dialog, SLOT(reject()));
+ connect(buttonBox, &QDialogButtonBox::accepted, dialog, &QDialog::accept);
+ connect(buttonBox, &QDialogButtonBox::rejected, dialog, &QDialog::reject);
auto* vbox = new QVBoxLayout();
vbox->addWidget(label);