QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Slots | Public Member Functions | Protected Member Functions | List of all members
QgsOptionsPageWidget Class Referenceabstract

Base class for widgets for pages included in the options dialog. More...

#include <qgsoptionswidgetfactory.h>

Inheritance diagram for QgsOptionsPageWidget:
Inheritance graph
[legend]

Public Slots

virtual void apply ()=0
 Called to permanently apply the settings shown in the options page (e.g. More...
 

Public Member Functions

 QgsOptionsPageWidget (QWidget *parent=nullptr)
 Constructor for QgsOptionsPageWidget. More...
 
virtual QString helpKey () const
 Returns the optional help key for the options page. More...
 
QMap< QWidget *, QgsOptionsDialogHighlightWidget * > registeredHighlightWidgets ()
 Returns the registered highlight widgets used to search and highlight text in options dialogs. More...
 

Protected Member Functions

void registerHighlightWidget (QgsOptionsDialogHighlightWidget *highlightWidget)
 Register a highlight widget to be used to search and highlight text in options dialogs. More...
 

Detailed Description

Base class for widgets for pages included in the options dialog.

Since
QGIS 3.0

Definition at line 30 of file qgsoptionswidgetfactory.h.

Constructor & Destructor Documentation

QgsOptionsPageWidget::QgsOptionsPageWidget ( QWidget *  parent = nullptr)
inline

Constructor for QgsOptionsPageWidget.

Definition at line 39 of file qgsoptionswidgetfactory.h.

Member Function Documentation

virtual void QgsOptionsPageWidget::apply ( )
pure virtualslot

Called to permanently apply the settings shown in the options page (e.g.

save them to QgsSettings objects). This is usually called when the options dialog is accepted.

virtual QString QgsOptionsPageWidget::helpKey ( ) const
inlinevirtual

Returns the optional help key for the options page.

The default implementation returns an empty string.

If a non-empty string is returned by this method, it will be used as the help key retrieved when the "help" button is clicked while this options page is active.

If an empty string is returned by this method the default QGIS options help will be retrieved.

Definition at line 53 of file qgsoptionswidgetfactory.h.

QMap<QWidget *, QgsOptionsDialogHighlightWidget *> QgsOptionsPageWidget::registeredHighlightWidgets ( )
inline

Returns the registered highlight widgets used to search and highlight text in options dialogs.

Definition at line 60 of file qgsoptionswidgetfactory.h.

void QgsOptionsPageWidget::registerHighlightWidget ( QgsOptionsDialogHighlightWidget highlightWidget)
inlineprotected

Register a highlight widget to be used to search and highlight text in options dialogs.

This can be used to provide a custom implementation of QgsOptionsDialogHighlightWidget.

Definition at line 78 of file qgsoptionswidgetfactory.h.


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