2017-01-05 03:05:08 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QEvent>
|
2023-08-02 17:35:35 +01:00
|
|
|
#include <QWizardPage>
|
2017-01-05 03:05:08 +00:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
class BaseWizardPage : public QWizardPage {
|
|
|
|
public:
|
|
|
|
explicit BaseWizardPage(QWidget* parent = Q_NULLPTR) : QWizardPage(parent) {}
|
|
|
|
virtual ~BaseWizardPage(){};
|
2017-01-05 03:05:08 +00:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
virtual bool wantsRefreshButton() { return false; }
|
|
|
|
virtual void refresh() {}
|
2017-01-05 03:05:08 +00:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
protected:
|
2018-07-15 13:51:05 +01:00
|
|
|
virtual void retranslate() = 0;
|
2023-08-02 17:35:35 +01:00
|
|
|
void changeEvent(QEvent* event) override
|
2018-07-15 13:51:05 +01:00
|
|
|
{
|
2023-08-02 17:35:35 +01:00
|
|
|
if (event->type() == QEvent::LanguageChange) {
|
2018-07-15 13:51:05 +01:00
|
|
|
retranslate();
|
|
|
|
}
|
|
|
|
QWizardPage::changeEvent(event);
|
|
|
|
}
|
2017-01-05 03:05:08 +00:00
|
|
|
};
|