aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/FindWidget.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/FindWidget.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/FindWidget.cpp')
-rw-r--r--src/ui/widgets/FindWidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/widgets/FindWidget.cpp b/src/ui/widgets/FindWidget.cpp
index c1223475..58ceda7c 100644
--- a/src/ui/widgets/FindWidget.cpp
+++ b/src/ui/widgets/FindWidget.cpp
@@ -48,11 +48,11 @@ FindWidget::FindWidget(QWidget* parent, PlainTextEditorPage* edit)
notificationWidgetLayout->addWidget(closeButton);
this->setLayout(notificationWidgetLayout);
- connect(find_edit_, SIGNAL(textEdited(QString)), this, SLOT(slot_find()));
- connect(find_edit_, SIGNAL(returnPressed()), this, SLOT(slot_find_next()));
- connect(nextButton, SIGNAL(clicked()), this, SLOT(slot_find_next()));
- connect(previousButton, SIGNAL(clicked()), this, SLOT(slot_find_previous()));
- connect(closeButton, SIGNAL(clicked()), this, SLOT(slot_close()));
+ connect(find_edit_, &QLineEdit::textEdited, this, &FindWidget::slot_find);
+ connect(find_edit_, &QLineEdit::returnPressed, this, &FindWidget::slot_find_next);
+ connect(nextButton, &QPushButton::clicked, this, &FindWidget::slot_find_next);
+ connect(previousButton, &QPushButton::clicked, this, &FindWidget::slot_find_previous);
+ connect(closeButton, &QPushButton::clicked, this, &FindWidget::slot_close);
// The timer is necessary for setting the focus
QTimer::singleShot(0, find_edit_, SLOT(setFocus()));