diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-11-21 22:27:38 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2020-11-22 14:43:01 +0100 |
commit | dfe9d63640f27d88d4d89cb2237579319b5ac952 (patch) | |
tree | f63d1a37297c04a7938b2b11d55b10418f504b1a /rbutil/rbutilqt | |
parent | 1a3d12ceeab77ee38f202c410b774f7d2e247ea4 (diff) | |
download | rockbox-dfe9d63640f27d88d4d89cb2237579319b5ac952.tar.gz rockbox-dfe9d63640f27d88d4d89cb2237579319b5ac952.zip |
rbutil: Modernize connect() to new pointer-to-member syntax.
Change-Id: I984ce56b5b45bbe705ac178cfe26cbc8b0d7e9d2
Diffstat (limited to 'rbutil/rbutilqt')
-rw-r--r-- | rbutil/rbutilqt/gui/selectiveinstallwidget.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp b/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp index 1d7439e6fc..ef54a918ab 100644 --- a/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp +++ b/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp @@ -50,11 +50,14 @@ SelectiveInstallWidget::SelectiveInstallWidget(QWidget* parent) : QWidget(parent m_zipinstaller = nullptr; m_themesinstaller = nullptr; - connect(ui.installButton, SIGNAL(clicked()), this, SLOT(startInstall())); - connect(this, SIGNAL(installSkipped(bool)), this, SLOT(continueInstall(bool))); - connect(ui.themesCustomize, SIGNAL(clicked()), this, SLOT(customizeThemes())); - connect(ui.selectedVersion, SIGNAL(currentIndexChanged(int)), - this, SLOT(selectedVersionChanged(int))); + connect(ui.installButton, &QAbstractButton::clicked, + this, &SelectiveInstallWidget::startInstall); + connect(this, &SelectiveInstallWidget::installSkipped, + this, &SelectiveInstallWidget::continueInstall); + connect(ui.themesCustomize, &QAbstractButton::clicked, + this, &SelectiveInstallWidget::customizeThemes); + connect(ui.selectedVersion, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), + this, &SelectiveInstallWidget::selectedVersionChanged); // update version information. This also handles setting the previously // selected build type and bootloader disabling. updateVersion(); |