ConfigurationDialog Class Reference
+ Inheritance diagram for ConfigurationDialog:

Public Slots

void reject () override
 

Public Member Functions

 ConfigurationDialog (QWidget *parent=nullptr)
 
virtual QStandardItem * addConfigPage (QStandardItem *rootItem, ConfigPage *configPage, int position=-1)
 Adds a new configuration page to the options tree view.
 
QStandardItem * addLabel (QStandardItem *rootItem, const QString &label, int position=-1)
 Adds a label node to the options tree view.
 

Protected Member Functions

virtual void doSaveSettings ()
 
void keyPressEvent (QKeyEvent *e) override
 
QTreeView * optionsTree ()
 Returns pointer to the tree widget that contains configuration sections list.
 
void showConfigPage (ConfigPage *widget)
 
virtual bool validate ()
 

Detailed Description

Definition at line 36 of file configurationdialog.h.

Member Function Documentation

QStandardItem * ConfigurationDialog::addConfigPage ( QStandardItem *  rootItem,
ConfigPage configPage,
int  position = -1 
)
virtual

Adds a new configuration page to the options tree view.

Parameters
rootItemPointer to the root node of the tree to which the new box will be attached. If nullptr, the standard model root is used.
configPagePointer to ConfigPage instance.
positionPassing <0 will use appendRow method, otherwise the new tree view node will be inserted at specified position.
Returns
nullptr if ConfigPage was not added. Pointer to a new tree node if operation was successful.

Reimplemented in DoomseekerConfigurationDialog.

Definition at line 122 of file configurationdialog.cpp.

QStandardItem * ConfigurationDialog::addLabel ( QStandardItem *  rootItem,
const QString &  label,
int  position = -1 
)

Adds a label node to the options tree view.

Such node has no ConfigPage attached. It serves only organizational purposes.

Parameters
rootItemPointer to the root node of the tree to which the new label will be attached. If nullptr, the standard model root is used.
labelLabel for the new node.
positionPassing <0 will use appendRow method, otherwise the new tree view node will be inserted at specified position.
Returns
Newly created options tree view node. nullptr if rootItem was not a member of the tree view.

Definition at line 164 of file configurationdialog.cpp.

QTreeView * ConfigurationDialog::optionsTree ( )
protected

Returns pointer to the tree widget that contains configuration sections list.

Definition at line 303 of file configurationdialog.cpp.

void ConfigurationDialog::showConfigPage ( ConfigPage widget)
protected
Parameters
widget- hide currently displayed box if nullptr.

Definition at line 327 of file configurationdialog.cpp.


The documentation for this class was generated from the following files: