From 3780c1baab8562e15eade1c1be25ccebd0e70814 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Wed, 2 Feb 2022 14:47:24 +0800 Subject: (ui): Repair and tidy the signal and slot docking 1. Use more modern ways. 2. Repair partial docking. --- src/ui/help/AboutDialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ui/help/AboutDialog.cpp') diff --git a/src/ui/help/AboutDialog.cpp b/src/ui/help/AboutDialog.cpp index e0d8f099..53917217 100644 --- a/src/ui/help/AboutDialog.cpp +++ b/src/ui/help/AboutDialog.cpp @@ -54,7 +54,7 @@ AboutDialog::AboutDialog(int defaultIndex, QWidget* parent) : QDialog(parent) { } auto* buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok); - connect(buttonBox, SIGNAL(accepted()), this, SLOT(close())); + connect(buttonBox, &QDialogButtonBox::accepted, this, &AboutDialog::close); auto* mainLayout = new QVBoxLayout; mainLayout->addWidget(tabWidget); @@ -194,8 +194,8 @@ void UpdateTab::getLatestVersion() { auto version_thread = new VersionCheckThread(); - connect(version_thread, SIGNAL(finished()), version_thread, - SLOT(deleteLater())); + connect(version_thread, &VersionCheckThread::finished, version_thread, + &VersionCheckThread::deleteLater); connect(version_thread, &VersionCheckThread::SignalUpgradeVersion, this, &UpdateTab::slot_show_version_status); -- cgit v1.2.3