mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-28 06:18:06 +00:00
34 lines
516 B
C
34 lines
516 B
C
|
#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);
|
||
|
}
|
||
|
};
|