QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
Factory class for creating relation widgets and their corresponding config widgets. More...
#include <qgsabstractrelationeditorwidget.h>
Public Member Functions | |
QgsAbstractRelationEditorWidgetFactory () | |
Creates a new relation widget factory with given name. More... | |
virtual | ~QgsAbstractRelationEditorWidgetFactory ()=default |
virtual QgsAbstractRelationEditorConfigWidget * | configWidget (const QgsRelation &relation, QWidget *parent) const =0 |
Override this in your implementation. More... | |
virtual QgsAbstractRelationEditorWidget * | create (const QVariantMap &config, QWidget *parent=nullptr) const =0 |
Override this in your implementation. More... | |
virtual QString | name () const =0 |
Returns the human readable identifier name of this widget type. More... | |
virtual QString | type () const =0 |
Returns the machine readable identifier name of this widget type. More... | |
Factory class for creating relation widgets and their corresponding config widgets.
Definition at line 391 of file qgsabstractrelationeditorwidget.h.
QgsAbstractRelationEditorWidgetFactory::QgsAbstractRelationEditorWidgetFactory | ( | ) |
Creates a new relation widget factory with given name.
Definition at line 668 of file qgsabstractrelationeditorwidget.cpp.
|
virtualdefault |
|
pure virtual |
Override this in your implementation.
Create a new configuration widget for this widget type.
relation | The relation for which the widget will be created |
parent | The parent widget of the created config widget |
Implemented in QgsRelationEditorWidgetFactory.
|
pure virtual |
Override this in your implementation.
Create a new relation widget. Call QgsEditorWidgetRegistry::create() instead of calling this method directly.
config | The widget configuration to build the widget with |
parent | The parent for the wrapper class and any created widget. |
Implemented in QgsRelationEditorWidgetFactory.
|
pure virtual |
Returns the human readable identifier name of this widget type.
Implemented in QgsRelationEditorWidgetFactory.
|
pure virtual |
Returns the machine readable identifier name of this widget type.
Implemented in QgsRelationEditorWidgetFactory.