Some checks failed
CodeQL Code Scanning / CodeQL (push) Has been cancelled
Build Application / Build Debug (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-13, x86_64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-14, aarch64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04, x86_64-linux) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04-arm, aarch64-linux) (push) Has been cancelled
Update Flake Lockfile / update-flake (push) Has been cancelled
24 lines
558 B
C++
Executable File
24 lines
558 B
C++
Executable File
#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);
|
|
}
|
|
};
|