diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-01-05 04:05:08 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-01-05 04:05:08 +0100 |
commit | e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa (patch) | |
tree | 2592a85455ff45925eaa19e8023061a5089be89a /application/setupwizard/BaseWizardPage.h | |
parent | 4c0db2b99decf407b1f5cf0afc6f29db87ac03ca (diff) | |
download | MultiMC-e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa.tar MultiMC-e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa.tar.gz MultiMC-e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa.tar.lz MultiMC-e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa.tar.xz MultiMC-e1bd1c614519974d7bfc0efc8dcbfafa9418e2fa.zip |
NOISSUE feature complete setup wizard
Diffstat (limited to 'application/setupwizard/BaseWizardPage.h')
-rw-r--r-- | application/setupwizard/BaseWizardPage.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/application/setupwizard/BaseWizardPage.h b/application/setupwizard/BaseWizardPage.h new file mode 100644 index 00000000..9ad54e09 --- /dev/null +++ b/application/setupwizard/BaseWizardPage.h @@ -0,0 +1,33 @@ +#pragma once + +#include <QWizardPage> +#include <QEvent> + +class BaseWizardPage : public QWizardPage +{ +public: + explicit BaseWizardPage(QWidget *parent = Q_NULLPTR) + : QWizardPage(parent) + { + } + virtual ~BaseWizardPage() {}; + + virtual bool wantsRefreshButton() + { + return false; + } + virtual void refresh() + { + } + +protected: + virtual void retranslate() = 0; + void changeEvent(QEvent * event) override + { + if (event->type() == QEvent::LanguageChange) + { + retranslate(); + } + QWizardPage::changeEvent(event); + } +}; |