NOISSUE feature complete setup wizard

This commit is contained in:
Petr Mrázek
2017-01-05 04:05:08 +01:00
parent 4c0db2b99d
commit e1bd1c6145
17 changed files with 1075 additions and 553 deletions

View 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);
}
};