QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
|
This class manages editor widgets for settings. More...
#include <qgssettingseditorwidgetregistry.h>
Public Member Functions | |
QgsSettingsEditorWidgetRegistry () | |
Constructor. More... | |
~QgsSettingsEditorWidgetRegistry () | |
bool | addWrapper (QgsSettingsEditorWidgetWrapper *wrapper) |
Adds an editor widget wrapper to the registry Returns false if an editor widget with same id already exists. More... | |
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. More... | |
QgsSettingsEditorWidgetWrapper * | createWrapper (const QString &id, QObject *parent) const |
Returns a new instance of the editor widget for the given id. More... | |
This class manages editor widgets for settings.
Definition at line 35 of file qgssettingseditorwidgetregistry.h.
QgsSettingsEditorWidgetRegistry::QgsSettingsEditorWidgetRegistry | ( | ) |
Constructor.
Definition at line 23 of file qgssettingseditorwidgetregistry.cpp.
QgsSettingsEditorWidgetRegistry::~QgsSettingsEditorWidgetRegistry | ( | ) |
Definition at line 33 of file qgssettingseditorwidgetregistry.cpp.
bool QgsSettingsEditorWidgetRegistry::addWrapper | ( | QgsSettingsEditorWidgetWrapper * | wrapper | ) |
Adds an editor widget wrapper to the registry Returns false
if an editor widget with same id already exists.
Definition at line 38 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 61 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 47 of file qgssettingseditorwidgetregistry.cpp.