diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-26 19:50:19 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2021-12-26 19:50:19 +0100 |
commit | 1ad4faa33403dc24ddc6f907f2b56bbe968d77f2 (patch) | |
tree | aa6045052e1d338d28c25b8e5e2b3ad8ac116b4f /utils/rbutilqt/gui/backupdialog.cpp | |
parent | 9f3d6e47e7bc7d3acf43a5ff86d3a82bbd4ad0a4 (diff) | |
download | rockbox-1ad4faa33403dc24ddc6f907f2b56bbe968d77f2.tar.gz rockbox-1ad4faa33403dc24ddc6f907f2b56bbe968d77f2.zip |
rbutil: Modernize connect() calls.
Auto fixed by clazy.
Change-Id: Iea16d892fd81c151f0081f7476acc5eda62afc25
Diffstat (limited to 'utils/rbutilqt/gui/backupdialog.cpp')
-rw-r--r-- | utils/rbutilqt/gui/backupdialog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/rbutilqt/gui/backupdialog.cpp b/utils/rbutilqt/gui/backupdialog.cpp index 63e628f7cf..e48d0babae 100644 --- a/utils/rbutilqt/gui/backupdialog.cpp +++ b/utils/rbutilqt/gui/backupdialog.cpp | |||
@@ -60,7 +60,6 @@ BackupDialog::BackupDialog(QWidget* parent) : QDialog(parent) | |||
60 | 60 | ||
61 | m_thread = new BackupSizeThread(); | 61 | m_thread = new BackupSizeThread(); |
62 | connect(m_thread, &QThread::finished, this, &BackupDialog::updateSizeInfo); | 62 | connect(m_thread, &QThread::finished, this, &BackupDialog::updateSizeInfo); |
63 | connect(m_thread, SIGNAL(terminated()), this, SLOT(updateSizeInfo())); | ||
64 | 63 | ||
65 | connect(ui.buttonCancel, &QAbstractButton::clicked, this, &QWidget::close); | 64 | connect(ui.buttonCancel, &QAbstractButton::clicked, this, &QWidget::close); |
66 | connect(ui.buttonCancel, &QAbstractButton::clicked, m_thread, &QThread::quit); | 65 | connect(ui.buttonCancel, &QAbstractButton::clicked, m_thread, &QThread::quit); |
@@ -135,8 +134,8 @@ void BackupDialog::backup(void) | |||
135 | 134 | ||
136 | // create backup | 135 | // create backup |
137 | ZipUtil zip(this); | 136 | ZipUtil zip(this); |
138 | connect(&zip, SIGNAL(logProgress(int, int)), m_logger, SLOT(setProgress(int, int))); | 137 | connect(&zip, &ZipUtil::logProgress, m_logger, &ProgressLoggerGui::setProgress); |
139 | connect(&zip, SIGNAL(logItem(QString, int)), m_logger, SLOT(addItem(QString, int))); | 138 | connect(&zip, &ZipUtil::logItem, m_logger, &ProgressLoggerGui::addItem); |
140 | zip.open(m_backupName, QuaZip::mdCreate); | 139 | zip.open(m_backupName, QuaZip::mdCreate); |
141 | 140 | ||
142 | QString mp = m_mountpoint + "/.rockbox"; | 141 | QString mp = m_mountpoint + "/.rockbox"; |