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/progressloggergui.cpp | |
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/progressloggergui.cpp')
-rw-r--r-- | utils/rbutilqt/progressloggergui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/rbutilqt/progressloggergui.cpp b/utils/rbutilqt/progressloggergui.cpp index 37e0908ae0..78fc00db8f 100644 --- a/utils/rbutilqt/progressloggergui.cpp +++ b/utils/rbutilqt/progressloggergui.cpp | |||
@@ -29,7 +29,7 @@ ProgressLoggerGui::ProgressLoggerGui(QWidget* parent): ProgressloggerInterface(p | |||
29 | dp.setupUi(downloadProgress); | 29 | dp.setupUi(downloadProgress); |
30 | dp.listProgress->setAlternatingRowColors(true); | 30 | dp.listProgress->setAlternatingRowColors(true); |
31 | dp.saveLog->hide(); | 31 | dp.saveLog->hide(); |
32 | connect(dp.saveLog,SIGNAL(clicked()),this,SLOT(saveErrorLog())); | 32 | connect(dp.saveLog,&QAbstractButton::clicked,this,&ProgressLoggerGui::saveErrorLog); |
33 | setRunning(); | 33 | setRunning(); |
34 | } | 34 | } |
35 | 35 | ||
@@ -100,9 +100,9 @@ void ProgressLoggerGui::setRunning() | |||
100 | dp.buttonAbort->setIcon(QIcon(QString::fromUtf8(":/icons/process-stop.svg"))); | 100 | dp.buttonAbort->setIcon(QIcon(QString::fromUtf8(":/icons/process-stop.svg"))); |
101 | 101 | ||
102 | // make sure to not close the window on button press. | 102 | // make sure to not close the window on button press. |
103 | disconnect(dp.buttonAbort, SIGNAL(clicked()), downloadProgress, SLOT(close())); | 103 | disconnect(dp.buttonAbort, &QAbstractButton::clicked, downloadProgress, &QWidget::close); |
104 | // emit aborted() once button is pressed but not closed(). | 104 | // emit aborted() once button is pressed but not closed(). |
105 | disconnect(dp.buttonAbort, SIGNAL(clicked()), this, SIGNAL(closed())); | 105 | disconnect(dp.buttonAbort, &QAbstractButton::clicked, this, &ProgressLoggerGui::closed); |
106 | connect(dp.buttonAbort, SIGNAL(clicked()), this, SIGNAL(aborted())); | 106 | connect(dp.buttonAbort, SIGNAL(clicked()), this, SIGNAL(aborted())); |
107 | 107 | ||
108 | } | 108 | } |
@@ -118,10 +118,10 @@ void ProgressLoggerGui::setFinished() | |||
118 | dp.buttonAbort->setIcon(QIcon(QString::fromUtf8(":/icons/go-next.svg"))); | 118 | dp.buttonAbort->setIcon(QIcon(QString::fromUtf8(":/icons/go-next.svg"))); |
119 | 119 | ||
120 | // close the window on button press. | 120 | // close the window on button press. |
121 | connect(dp.buttonAbort, SIGNAL(clicked()), downloadProgress, SLOT(close())); | 121 | connect(dp.buttonAbort, &QAbstractButton::clicked, downloadProgress, &QWidget::close); |
122 | // emit closed() once button is pressed but not aborted(). | 122 | // emit closed() once button is pressed but not aborted(). |
123 | disconnect(dp.buttonAbort, SIGNAL(clicked()), this, SIGNAL(aborted())); | 123 | disconnect(dp.buttonAbort, SIGNAL(clicked()), this, SIGNAL(aborted())); |
124 | connect(dp.buttonAbort, SIGNAL(clicked()), this, SIGNAL(closed())); | 124 | connect(dp.buttonAbort, &QAbstractButton::clicked, this, &ProgressLoggerGui::closed); |
125 | } | 125 | } |
126 | 126 | ||
127 | 127 | ||