diff options
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 | ||