PrismLauncher/launcher/ui/setupwizard/BaseWizardPage.h
Sefa Eyeoglu 1d468ac35a
chore: reformat
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-08-02 18:35:35 +02:00

24 lines
557 B
C++

#pragma once
#include <QEvent>
#include <QWizardPage>
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);
}
};