diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-25 17:29:55 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-25 17:47:14 +0100 |
commit | 6ff75b475c2014271ac325aaf9cdae0d2909c0e6 (patch) | |
tree | baf72ed29ca7fe6ba1d0042a773f6d3b9e173325 /utils/rbutilqt/gui | |
parent | dce2ccdd967820ad795927bb837ae34cf20929b8 (diff) | |
download | rockbox-6ff75b475c2014271ac325aaf9cdae0d2909c0e6.tar.gz rockbox-6ff75b475c2014271ac325aaf9cdae0d2909c0e6.zip |
rbutil: Modernize connect() calls.
Auto fixed by clazy.
Change-Id: Ib7cce8c0a85f8f915263980bf5d2508a4b19bbe3
Diffstat (limited to 'utils/rbutilqt/gui')
-rw-r--r-- | utils/rbutilqt/gui/backupdialog.cpp | 12 | ||||
-rw-r--r-- | utils/rbutilqt/gui/selectiveinstallwidget.cpp | 24 |
2 files changed, 18 insertions, 18 deletions
diff --git a/utils/rbutilqt/gui/backupdialog.cpp b/utils/rbutilqt/gui/backupdialog.cpp index f12c47b570..63e628f7cf 100644 --- a/utils/rbutilqt/gui/backupdialog.cpp +++ b/utils/rbutilqt/gui/backupdialog.cpp | |||
@@ -59,13 +59,13 @@ BackupDialog::BackupDialog(QWidget* parent) : QDialog(parent) | |||
59 | ui.setupUi(this); | 59 | ui.setupUi(this); |
60 | 60 | ||
61 | m_thread = new BackupSizeThread(); | 61 | m_thread = new BackupSizeThread(); |
62 | connect(m_thread, SIGNAL(finished()), this, SLOT(updateSizeInfo())); | 62 | connect(m_thread, &QThread::finished, this, &BackupDialog::updateSizeInfo); |
63 | connect(m_thread, SIGNAL(terminated()), this, SLOT(updateSizeInfo())); | 63 | connect(m_thread, SIGNAL(terminated()), this, SLOT(updateSizeInfo())); |
64 | 64 | ||
65 | connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(close())); | 65 | connect(ui.buttonCancel, &QAbstractButton::clicked, this, &QWidget::close); |
66 | connect(ui.buttonCancel, SIGNAL(clicked()), m_thread, SLOT(quit())); | 66 | connect(ui.buttonCancel, &QAbstractButton::clicked, m_thread, &QThread::quit); |
67 | connect(ui.buttonChange, SIGNAL(clicked()), this, SLOT(changeBackupPath())); | 67 | connect(ui.buttonChange, &QAbstractButton::clicked, this, &BackupDialog::changeBackupPath); |
68 | connect(ui.buttonBackup, SIGNAL(clicked()), this, SLOT(backup())); | 68 | connect(ui.buttonBackup, &QAbstractButton::clicked, this, &BackupDialog::backup); |
69 | 69 | ||
70 | ui.backupSize->setText(tr("Installation size: calculating ...")); | 70 | ui.backupSize->setText(tr("Installation size: calculating ...")); |
71 | m_mountpoint = RbSettings::value(RbSettings::Mountpoint).toString(); | 71 | m_mountpoint = RbSettings::value(RbSettings::Mountpoint).toString(); |
@@ -120,7 +120,7 @@ void BackupDialog::backup(void) | |||
120 | } | 120 | } |
121 | } | 121 | } |
122 | m_logger = new ProgressLoggerGui(this); | 122 | m_logger = new ProgressLoggerGui(this); |
123 | connect(m_logger, SIGNAL(closed()), this, SLOT(close())); | 123 | connect(m_logger, &ProgressLoggerGui::closed, this, &QWidget::close); |
124 | m_logger->show(); | 124 | m_logger->show(); |
125 | m_logger->addItem(tr("Starting backup ..."),LOGINFO); | 125 | m_logger->addItem(tr("Starting backup ..."),LOGINFO); |
126 | QCoreApplication::processEvents(); | 126 | QCoreApplication::processEvents(); |
diff --git a/utils/rbutilqt/gui/selectiveinstallwidget.cpp b/utils/rbutilqt/gui/selectiveinstallwidget.cpp index a0504c0f40..3fe2dc7956 100644 --- a/utils/rbutilqt/gui/selectiveinstallwidget.cpp +++ b/utils/rbutilqt/gui/selectiveinstallwidget.cpp | |||
@@ -294,9 +294,9 @@ void SelectiveInstallWidget::installBootloader(void) | |||
294 | // the bootloader install class does NOT use any GUI stuff. | 294 | // the bootloader install class does NOT use any GUI stuff. |
295 | // All messages are passed via signals. | 295 | // All messages are passed via signals. |
296 | connect(bl, SIGNAL(done(bool)), m_logger, SLOT(setFinished())); | 296 | connect(bl, SIGNAL(done(bool)), m_logger, SLOT(setFinished())); |
297 | connect(bl, SIGNAL(done(bool)), this, SLOT(continueInstall(bool))); | 297 | connect(bl, &BootloaderInstallBase::done, this, &SelectiveInstallWidget::continueInstall); |
298 | connect(bl, SIGNAL(logItem(QString, int)), m_logger, SLOT(addItem(QString, int))); | 298 | connect(bl, SIGNAL(logItem(QString, int)), m_logger, SLOT(addItem(QString, int))); |
299 | connect(bl, SIGNAL(logProgress(int, int)), m_logger, SLOT(setProgress(int, int))); | 299 | connect(bl, &BootloaderInstallBase::logProgress, m_logger, &ProgressLoggerGui::setProgress); |
300 | // pass Abort button click signal to current installer | 300 | // pass Abort button click signal to current installer |
301 | connect(m_logger, SIGNAL(aborted()), bl, SLOT(progressAborted())); | 301 | connect(m_logger, SIGNAL(aborted()), bl, SLOT(progressAborted())); |
302 | 302 | ||
@@ -446,10 +446,10 @@ void SelectiveInstallWidget::installRockbox(void) | |||
446 | PlayerBuildInfo::BuildVersion, m_buildtype).toString()); | 446 | PlayerBuildInfo::BuildVersion, m_buildtype).toString()); |
447 | m_zipinstaller->setMountPoint(m_mountpoint); | 447 | m_zipinstaller->setMountPoint(m_mountpoint); |
448 | 448 | ||
449 | connect(m_zipinstaller, SIGNAL(done(bool)), this, SLOT(continueInstall(bool))); | 449 | connect(m_zipinstaller, &ZipInstaller::done, this, &SelectiveInstallWidget::continueInstall); |
450 | 450 | ||
451 | connect(m_zipinstaller, SIGNAL(logItem(QString, int)), m_logger, SLOT(addItem(QString, int))); | 451 | connect(m_zipinstaller, SIGNAL(logItem(QString, int)), m_logger, SLOT(addItem(QString, int))); |
452 | connect(m_zipinstaller, SIGNAL(logProgress(int, int)), m_logger, SLOT(setProgress(int, int))); | 452 | connect(m_zipinstaller, &ZipInstaller::logProgress, m_logger, &ProgressLoggerGui::setProgress); |
453 | connect(m_logger, SIGNAL(aborted()), m_zipinstaller, SLOT(abort())); | 453 | connect(m_logger, SIGNAL(aborted()), m_zipinstaller, SLOT(abort())); |
454 | m_zipinstaller->install(); | 454 | m_zipinstaller->install(); |
455 | 455 | ||
@@ -488,9 +488,9 @@ void SelectiveInstallWidget::installFonts(void) | |||
488 | if(!RbSettings::value(RbSettings::CacheDisabled).toBool()) | 488 | if(!RbSettings::value(RbSettings::CacheDisabled).toBool()) |
489 | m_zipinstaller->setCache(true); | 489 | m_zipinstaller->setCache(true); |
490 | 490 | ||
491 | connect(m_zipinstaller, SIGNAL(done(bool)), this, SLOT(continueInstall(bool))); | 491 | connect(m_zipinstaller, &ZipInstaller::done, this, &SelectiveInstallWidget::continueInstall); |
492 | connect(m_zipinstaller, SIGNAL(logItem(QString, int)), m_logger, SLOT(addItem(QString, int))); | 492 | connect(m_zipinstaller, SIGNAL(logItem(QString, int)), m_logger, SLOT(addItem(QString, int))); |
493 | connect(m_zipinstaller, SIGNAL(logProgress(int, int)), m_logger, SLOT(setProgress(int, int))); | 493 | connect(m_zipinstaller, &ZipInstaller::logProgress, m_logger, &ProgressLoggerGui::setProgress); |
494 | connect(m_logger, SIGNAL(aborted()), m_zipinstaller, SLOT(abort())); | 494 | connect(m_logger, SIGNAL(aborted()), m_zipinstaller, SLOT(abort())); |
495 | m_zipinstaller->install(); | 495 | m_zipinstaller->install(); |
496 | } | 496 | } |
@@ -528,9 +528,9 @@ void SelectiveInstallWidget::installVoicefile(void) | |||
528 | if(!RbSettings::value(RbSettings::CacheDisabled).toBool()) | 528 | if(!RbSettings::value(RbSettings::CacheDisabled).toBool()) |
529 | m_zipinstaller->setCache(true); | 529 | m_zipinstaller->setCache(true); |
530 | 530 | ||
531 | connect(m_zipinstaller, SIGNAL(done(bool)), this, SLOT(continueInstall(bool))); | 531 | connect(m_zipinstaller, &ZipInstaller::done, this, &SelectiveInstallWidget::continueInstall); |
532 | connect(m_zipinstaller, SIGNAL(logItem(QString, int)), m_logger, SLOT(addItem(QString, int))); | 532 | connect(m_zipinstaller, SIGNAL(logItem(QString, int)), m_logger, SLOT(addItem(QString, int))); |
533 | connect(m_zipinstaller, SIGNAL(logProgress(int, int)), m_logger, SLOT(setProgress(int, int))); | 533 | connect(m_zipinstaller, &ZipInstaller::logProgress, m_logger, &ProgressLoggerGui::setProgress); |
534 | connect(m_logger, SIGNAL(aborted()), m_zipinstaller, SLOT(abort())); | 534 | connect(m_logger, SIGNAL(aborted()), m_zipinstaller, SLOT(abort())); |
535 | m_zipinstaller->install(); | 535 | m_zipinstaller->install(); |
536 | } | 536 | } |
@@ -574,9 +574,9 @@ void SelectiveInstallWidget::installManual(void) | |||
574 | // if type is html extract it. | 574 | // if type is html extract it. |
575 | m_zipinstaller->setUnzip(mantype == "html"); | 575 | m_zipinstaller->setUnzip(mantype == "html"); |
576 | 576 | ||
577 | connect(m_zipinstaller, SIGNAL(done(bool)), this, SLOT(continueInstall(bool))); | 577 | connect(m_zipinstaller, &ZipInstaller::done, this, &SelectiveInstallWidget::continueInstall); |
578 | connect(m_zipinstaller, SIGNAL(logItem(QString, int)), m_logger, SLOT(addItem(QString, int))); | 578 | connect(m_zipinstaller, SIGNAL(logItem(QString, int)), m_logger, SLOT(addItem(QString, int))); |
579 | connect(m_zipinstaller, SIGNAL(logProgress(int, int)), m_logger, SLOT(setProgress(int, int))); | 579 | connect(m_zipinstaller, &ZipInstaller::logProgress, m_logger, &ProgressLoggerGui::setProgress); |
580 | connect(m_logger, SIGNAL(aborted()), m_zipinstaller, SLOT(abort())); | 580 | connect(m_logger, SIGNAL(aborted()), m_zipinstaller, SLOT(abort())); |
581 | m_zipinstaller->install(); | 581 | m_zipinstaller->install(); |
582 | } | 582 | } |
@@ -669,9 +669,9 @@ void SelectiveInstallWidget::installPluginData(void) | |||
669 | m_zipinstaller->setMountPoint(m_mountpoint); | 669 | m_zipinstaller->setMountPoint(m_mountpoint); |
670 | if(!RbSettings::value(RbSettings::CacheDisabled).toBool()) | 670 | if(!RbSettings::value(RbSettings::CacheDisabled).toBool()) |
671 | m_zipinstaller->setCache(true); | 671 | m_zipinstaller->setCache(true); |
672 | connect(m_zipinstaller, SIGNAL(done(bool)), this, SLOT(continueInstall(bool))); | 672 | connect(m_zipinstaller, &ZipInstaller::done, this, &SelectiveInstallWidget::continueInstall); |
673 | connect(m_zipinstaller, SIGNAL(logItem(QString, int)), m_logger, SLOT(addItem(QString, int))); | 673 | connect(m_zipinstaller, SIGNAL(logItem(QString, int)), m_logger, SLOT(addItem(QString, int))); |
674 | connect(m_zipinstaller, SIGNAL(logProgress(int, int)), m_logger, SLOT(setProgress(int, int))); | 674 | connect(m_zipinstaller, &ZipInstaller::logProgress, m_logger, &ProgressLoggerGui::setProgress); |
675 | connect(m_logger, SIGNAL(aborted()), m_zipinstaller, SLOT(abort())); | 675 | connect(m_logger, SIGNAL(aborted()), m_zipinstaller, SLOT(abort())); |
676 | m_zipinstaller->install(); | 676 | m_zipinstaller->install(); |
677 | } | 677 | } |