diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-10 11:05:47 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-10 11:05:47 -0600 |
commit | de766db11e5677dc830bfdf0a383e887f6de3404 (patch) | |
tree | 7d244d8727c294b3996436455beb78994e6e7e3c /ui/qt5/runner/executorwizard.cc | |
parent | 04f0270f9a5f28ec1d2fa029d7ee78c8d0e5f9b2 (diff) | |
download | horizon-de766db11e5677dc830bfdf0a383e887f6de3404.tar.gz horizon-de766db11e5677dc830bfdf0a383e887f6de3404.tar.bz2 horizon-de766db11e5677dc830bfdf0a383e887f6de3404.tar.xz horizon-de766db11e5677dc830bfdf0a383e887f6de3404.zip |
Qt Runner: Add method to automatically close after completion
Diffstat (limited to 'ui/qt5/runner/executorwizard.cc')
-rw-r--r-- | ui/qt5/runner/executorwizard.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/qt5/runner/executorwizard.cc b/ui/qt5/runner/executorwizard.cc index 95aea6e..ab444b5 100644 --- a/ui/qt5/runner/executorwizard.cc +++ b/ui/qt5/runner/executorwizard.cc @@ -18,7 +18,8 @@ #include "errorpage.hh" #include "finishedpage.hh" -ExecutorWizard::ExecutorWizard(QWidget *parent) : QWizard(parent) { +ExecutorWizard::ExecutorWizard(QWidget *parent, bool _autom) + : QWizard(parent), automatic(_autom) { setWindowTitle(tr("Adélie Linux System Installation")); setFixedSize(QSize(650, 450)); @@ -32,7 +33,7 @@ ExecutorWizard::ExecutorWizard(QWidget *parent) : QWizard(parent) { setOption(NoCancelButtonOnLastPage); QList<QWizard::WizardButton> buttonLayout; - buttonLayout << Stretch << FinishButton << CancelButton; + buttonLayout << Stretch << FinishButton; setButtonLayout(buttonLayout); } |