summaryrefslogtreecommitdiff
path: root/ui/qt5/runner/finishedpage.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt5/runner/finishedpage.cc')
-rw-r--r--ui/qt5/runner/finishedpage.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/qt5/runner/finishedpage.cc b/ui/qt5/runner/finishedpage.cc
index 933a372..dd85068 100644
--- a/ui/qt5/runner/finishedpage.cc
+++ b/ui/qt5/runner/finishedpage.cc
@@ -10,12 +10,14 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
+#include "executorwizard.hh"
#include "finishedpage.hh"
#include <QFileDialog>
#include <QLabel>
#include <QMessageBox>
#include <QPushButton>
+#include <QTimer>
#include <QVBoxLayout>
FinishedPage::FinishedPage(QWidget *parent) : HorizonWizardPage(parent) {
@@ -55,3 +57,15 @@ FinishedPage::FinishedPage(QWidget *parent) : HorizonWizardPage(parent) {
setLayout(layout);
}
+
+void FinishedPage::initializePage() {
+ if(static_cast<ExecutorWizard *>(wizard())->isAutomatic()) {
+ QTimer *finishTimer = new QTimer(this);
+ finishTimer->setInterval(15000);
+ finishTimer->setSingleShot(true);
+ connect(finishTimer, &QTimer::timeout, [=]{
+ wizard()->accept();
+ });
+ finishTimer->start();
+ }
+}