QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
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. | |
virtual | ~QgsAbstractRelationEditorWidgetFactory ()=default |
virtual QgsAbstractRelationEditorConfigWidget * | configWidget (const QgsRelation &relation, QWidget *parent) const =0 |
Override this in your implementation. | |
virtual QgsAbstractRelationEditorWidget * | create (const QVariantMap &config, QWidget *parent=nullptr) const =0 |
Override this in your implementation. | |
virtual QString | name () const =0 |
Returns the human readable identifier name of this widget type. | |
virtual QString | type () const =0 |
Returns the machine readable identifier name of this widget type. | |
Factory class for creating relation widgets and their corresponding config widgets.
Definition at line 419 of file qgsabstractrelationeditorwidget.h.
QgsAbstractRelationEditorWidgetFactory::QgsAbstractRelationEditorWidgetFactory | ( | ) |
Creates a new relation widget factory with given name.
Definition at line 784 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.