QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSOPTIONSWIDGETFACTORY_H
17 #define QGSOPTIONSWIDGETFACTORY_H
19 #include <QListWidgetItem>
53 virtual QString
helpKey()
const {
return QString(); }
80 mHighlightWidgets.insert( highlightWidget->
widget(), highlightWidget );
84 QHash<QWidget *, QgsOptionsDialogHighlightWidget *> mHighlightWidgets;
117 virtual QIcon
icon()
const {
return mIcon; }
123 void setIcon(
const QIcon &icon ) { mIcon = icon; }
129 virtual QString
title()
const {
return mTitle; }
135 void setTitle(
const QString &title ) { mTitle = title; }
151 #endif // QGSOPTIONSWIDGETFACTORY_H
virtual QString helpKey() const
Returns the optional help key for the options page.
virtual void apply()=0
Called to permanently apply the settings shown in the options page (e.g.
QHash< QWidget *, QgsOptionsDialogHighlightWidget * > registeredHighlightWidgets()
Returns the registered highlight widgets used to search and highlight text in options dialogs.
QgsOptionsPageWidget(QWidget *parent=nullptr)
Constructor for QgsOptionsPageWidget.
void registerHighlightWidget(QgsOptionsDialogHighlightWidget *highlightWidget)
Register a highlight widget to be used to search and highlight text in options dialogs.
Base class for widgets for pages included in the options dialog.