summaryrefslogtreecommitdiff
path: root/utils/rbutilqt/progressloggergui.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2021-12-26 11:05:25 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2021-12-26 11:05:25 +0100
commit35bc4590ae75d7178061205d8e937bc4f8b5b09e (patch)
tree91152ba23d96a739d13938ed4463d2854a4a900f /utils/rbutilqt/progressloggergui.cpp
parent01e245417e24fe6c9957b35850db6b1473f66e98 (diff)
downloadrockbox-35bc4590ae75d7178061205d8e937bc4f8b5b09e.tar.gz
rockbox-35bc4590ae75d7178061205d8e937bc4f8b5b09e.zip
rbutil: Remove ProgressLogger interface class.
Since we're using signals to connect to the Logger we don't need an interface class, and the only thing still used was the log level enum. Put those values in a dedicated header instead. Change-Id: Ic3aee14ba13b81e283b477d11b1c15a5c26ffeab
Diffstat (limited to 'utils/rbutilqt/progressloggergui.cpp')
-rw-r--r--utils/rbutilqt/progressloggergui.cpp6
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
25ProgressLoggerGui::ProgressLoggerGui(QWidget* parent): ProgressloggerInterface(parent) 25ProgressLoggerGui::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