diff options
Diffstat (limited to 'utils/rbutilqt/progressloggergui.cpp')
-rw-r--r-- | utils/rbutilqt/progressloggergui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/rbutilqt/progressloggergui.cpp b/utils/rbutilqt/progressloggergui.cpp index 78fc00db8f..f04de395a3 100644 --- a/utils/rbutilqt/progressloggergui.cpp +++ b/utils/rbutilqt/progressloggergui.cpp | |||
@@ -22,7 +22,7 @@ | |||
22 | #include "sysinfo.h" | 22 | #include "sysinfo.h" |
23 | #include "systrace.h" | 23 | #include "systrace.h" |
24 | 24 | ||
25 | ProgressLoggerGui::ProgressLoggerGui(QWidget* parent): ProgressloggerInterface(parent) | 25 | ProgressLoggerGui::ProgressLoggerGui(QWidget* parent): QObject(parent) |
26 | { | 26 | { |
27 | downloadProgress = new QDialog(parent); | 27 | downloadProgress = new QDialog(parent); |
28 | downloadProgress->setModal(true); | 28 | downloadProgress->setModal(true); |
@@ -103,7 +103,7 @@ void ProgressLoggerGui::setRunning() | |||
103 | disconnect(dp.buttonAbort, &QAbstractButton::clicked, downloadProgress, &QWidget::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, &QAbstractButton::clicked, this, &ProgressLoggerGui::closed); | 105 | disconnect(dp.buttonAbort, &QAbstractButton::clicked, this, &ProgressLoggerGui::closed); |
106 | connect(dp.buttonAbort, SIGNAL(clicked()), this, SIGNAL(aborted())); | 106 | connect(dp.buttonAbort, &QAbstractButton::clicked, this, &ProgressLoggerGui::aborted); |
107 | 107 | ||
108 | } | 108 | } |
109 | 109 | ||
@@ -120,7 +120,7 @@ void ProgressLoggerGui::setFinished() | |||
120 | // close the window on button press. | 120 | // close the window on button press. |
121 | connect(dp.buttonAbort, &QAbstractButton::clicked, downloadProgress, &QWidget::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, &QAbstractButton::clicked, this, &ProgressLoggerGui::aborted); |
124 | connect(dp.buttonAbort, &QAbstractButton::clicked, this, &ProgressLoggerGui::closed); | 124 | connect(dp.buttonAbort, &QAbstractButton::clicked, this, &ProgressLoggerGui::closed); |
125 | } | 125 | } |
126 | 126 | ||