~UiFileBasedOptionPage() override
Destroys the option page.
bool apply() override=0
Applies altered settings.
bool hasBeenShown() const
Returns an indication whether the option page has been shown yet.
UiClass * ui()
Provides the derived class access to the UI class.
const QStringList & errors() const
Returns the errors which haven been occurred when applying the changes.
virtual void reset()=0
Discards altered settings and resets relevant widgets.
virtual QWidget * setupWidget()=0
Creates the widget for the page.
QWidget * setupWidget() override
Inflates the widget for the option page using the UI class.
UiFileBasedOptionPage(QWidget *parentWindow=nullptr)
Constructs a new UI file based option page.
QWidget * parentWindow() const
Returns the parent window of the option page.
virtual bool apply()=0
Applies altered settings.
The OptionPage class is the base class for SettingsDialog pages.
void reset() override=0
Discards altered settings and resets relevant widgets.