QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
This class manages editor widgets for settings. More...
#include <qgssettingseditorwidgetregistry.h>
Public Member Functions | |
QgsSettingsEditorWidgetRegistry () | |
Constructor. | |
~QgsSettingsEditorWidgetRegistry () | |
bool | addWrapper (QgsSettingsEditorWidgetWrapper *wrapper) |
Adds an editor widget wrapper to the registry If an editor widget with same id already exists, the wrapper is deleted and false is returned. | |
void | addWrapperForSetting (QgsSettingsEditorWidgetWrapper *wrapper, const QgsSettingsEntryBase *setting) |
Adds an editor widget wrapper for a specific setting to the registry. | |
QWidget * | createEditor (const QgsSettingsEntryBase *setting, const QStringList &dynamicKeyPartList, QWidget *parent=nullptr) const |
Creates an editor widget for the given setting using the corresponding registered wrapper. | |
QgsSettingsEditorWidgetWrapper * | createWrapper (const QString &id, QObject *parent) const |
Returns a new instance of the editor widget for the given id. | |
This class manages editor widgets for settings.
Definition at line 35 of file qgssettingseditorwidgetregistry.h.
QgsSettingsEditorWidgetRegistry::QgsSettingsEditorWidgetRegistry | ( | ) |
Constructor.
Definition at line 30 of file qgssettingseditorwidgetregistry.cpp.
QgsSettingsEditorWidgetRegistry::~QgsSettingsEditorWidgetRegistry | ( | ) |
Definition at line 66 of file qgssettingseditorwidgetregistry.cpp.
bool QgsSettingsEditorWidgetRegistry::addWrapper | ( | QgsSettingsEditorWidgetWrapper * | wrapper | ) |
Adds an editor widget wrapper to the registry If an editor widget with same id already exists, the wrapper is deleted and false
is returned.
Definition at line 71 of file qgssettingseditorwidgetregistry.cpp.
void QgsSettingsEditorWidgetRegistry::addWrapperForSetting | ( | QgsSettingsEditorWidgetWrapper * | wrapper, |
const QgsSettingsEntryBase * | setting | ||
) |
Adds an editor widget wrapper for a specific setting to the registry.
Definition at line 84 of file qgssettingseditorwidgetregistry.cpp.
QWidget * QgsSettingsEditorWidgetRegistry::createEditor | ( | const QgsSettingsEntryBase * | setting, |
const QStringList & | dynamicKeyPartList, | ||
QWidget * | parent = nullptr |
||
) | const |
Creates an editor widget for the given setting using the corresponding registered wrapper.
Definition at line 103 of file qgssettingseditorwidgetregistry.cpp.
QgsSettingsEditorWidgetWrapper * QgsSettingsEditorWidgetRegistry::createWrapper | ( | const QString & | id, |
QObject * | parent | ||
) | const |
Returns a new instance of the editor widget for the given id.
Definition at line 89 of file qgssettingseditorwidgetregistry.cpp.