Qt Utilities
6.4.1
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
|
#include <optionpage.h>
Public Member Functions | |
UiFileBasedOptionPage (QWidget *parentWindow=nullptr) | |
Constructs a new UI file based option page. More... | |
~UiFileBasedOptionPage () override | |
Destroys the option page. More... | |
bool | apply () override=0 |
Applies altered settings. More... | |
void | reset () override=0 |
Discards altered settings and resets relevant widgets. More... | |
![]() | |
OptionPage (QWidget *parentWindow=nullptr) | |
Constructs a option page. More... | |
virtual | ~OptionPage () |
Destroys the option page. More... | |
QWidget * | parentWindow () const |
Returns the parent window of the option page. More... | |
QWidget * | widget () |
Returns the widget for the option page. More... | |
bool | hasBeenShown () const |
Returns an indication whether the option page has been shown yet. More... | |
bool | matches (const QString &searchKeyWord) |
Returns whether the pages matches the specified searchKeyWord. More... | |
const QStringList & | errors () const |
Returns the errors which haven been occurred when applying the changes. More... | |
Protected Member Functions | |
QWidget * | setupWidget () override |
Inflates the widget for the option page using the UI class. More... | |
UiClass * | ui () |
Provides the derived class access to the UI class. More... | |
![]() | |
QStringList & | errors () |
Returns the errors which haven been occurred when applying the changes. More... | |
Definition at line 91 of file optionpage.h.
|
explicit |
Constructs a new UI file based option page.
Definition at line 111 of file optionpage.h.
|
override |
Destroys the option page.
Definition at line 119 of file optionpage.h.
|
overridepure virtual |
Applies altered settings.
Implements QtUtilities::OptionPage.
|
overridepure virtual |
Discards altered settings and resets relevant widgets.
Implements QtUtilities::OptionPage.
|
overrideprotectedvirtual |
Inflates the widget for the option page using the UI class.
Implements QtUtilities::OptionPage.
Definition at line 126 of file optionpage.h.
|
inlineprotected |
Provides the derived class access to the UI class.
Definition at line 139 of file optionpage.h.