PrismLauncher/launcher/ui/setupwizard/BaseWizardPage.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
557 B
C
Raw Normal View History

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