NOISSUE continue reshuffling the codebase
This commit is contained in:
33
launcher/ui/setupwizard/BaseWizardPage.h
Normal file
33
launcher/ui/setupwizard/BaseWizardPage.h
Normal file
@ -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);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user