Qt Utilities
5.6.0
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
|
The UiFileBasedOptionPage class is the base class for SettingsDialog pages using UI files to describe the widget tree. More...
#include <optionpage.h>
Public Member Functions | |
UiFileBasedOptionPage (QWidget *parentWindow=nullptr) | |
Constructs a new UI file based option page. More... | |
~UiFileBasedOptionPage () | |
Destroys the option page. More... | |
bool | apply ()=0 |
Applies altered settings. More... | |
void | reset ()=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 () |
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... | |
The UiFileBasedOptionPage class is the base class for SettingsDialog pages using UI files to describe the widget tree.
UiClass | Specifies the UI class generated by uic. |
Definition at line 87 of file optionpage.h.
|
explicit |
Constructs a new UI file based option page.
Definition at line 108 of file optionpage.h.
Dialogs::UiFileBasedOptionPage< UiClass >::~UiFileBasedOptionPage | ( | ) |
Destroys the option page.
Definition at line 116 of file optionpage.h.
|
pure virtual |
Applies altered settings.
Implements Dialogs::OptionPage.
|
pure virtual |
Discards altered settings and resets relevant widgets.
Implements Dialogs::OptionPage.
|
protectedvirtual |
Inflates the widget for the option page using the UI class.
Implements Dialogs::OptionPage.
Definition at line 123 of file optionpage.h.
|
inlineprotected |
Provides the derived class access to the UI class.
Definition at line 137 of file optionpage.h.