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/main_window/MainWindow.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 '')
-rw-r--r-- | src/ui/main_window/MainWindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/main_window/MainWindow.cpp b/src/ui/main_window/MainWindow.cpp index 4b9ac854..ee5c1c2c 100644 --- a/src/ui/main_window/MainWindow.cpp +++ b/src/ui/main_window/MainWindow.cpp @@ -62,7 +62,7 @@ void MainWindow::init() noexcept { attachment_dock_created_ = false; /* Variable containing if restart is needed */ - this->slot_set_restart_needed(false); + this->SlotSetRestartNeeded(false); create_actions(); create_menus(); @@ -70,8 +70,8 @@ void MainWindow::init() noexcept { create_status_bar(); create_dock_windows(); - connect(edit_->tab_widget_, SIGNAL(currentChanged(int)), this, - SLOT(slot_disable_tab_actions(int))); + connect(edit_->tab_widget_, &QTabWidget::currentChanged, this, + &MainWindow::slot_disable_tab_actions); connect(SignalStation::GetInstance(), &SignalStation::SignalRefreshStatusBar, this, [=](const QString& message, int timeout) { @@ -124,8 +124,8 @@ void MainWindow::init() noexcept { #ifdef RELEASE 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::upgradeVersion, this, &MainWindow::slotVersionUpgrade); |