28  , mMessageBar( messageBar )
 
 
   49  QHash<const char *, int> map = QHash<const char *, int>();
 
   50  map.insert( QgsRelationReferenceWidget::staticMetaObject.className(), 10 );
 
 
   56  int normalRelationsCount = 0;
 
   63        normalRelationsCount++;
 
   71  return normalRelationsCount > 0 ? 21  : 5;
 
 
@ Generated
A generated relation is a child of a polymorphic relation.
 
@ Normal
A normal relation.
 
Map canvas is a class for displaying all GIS data types on a canvas.
 
A bar for displaying non-blocking messages to the user.
 
QgsEditorConfigWidget * configWidget(QgsVectorLayer *vl, int fieldIdx, QWidget *parent) const override
Override this in your implementation.
 
QgsRelationReferenceFactory(const QString &name, QgsMapCanvas *canvas, QgsMessageBar *messageBar)
 
QgsEditorWidgetWrapper * create(QgsVectorLayer *vl, int fieldIdx, QWidget *editor, QWidget *parent) const override
Override this in your implementation.
 
QgsSearchWidgetWrapper * createSearchWidget(QgsVectorLayer *vl, int fieldIdx, QWidget *parent) const override
By default a simple QgsFilterLineEdit is returned as search widget.
 
unsigned int fieldScore(const QgsVectorLayer *vl, int fieldIdx) const override
This method allows disabling this editor widget type for a certain field.
 
QHash< const char *, int > supportedWidgetTypes() override
Returns a list of widget types which this editor widget supports.
 
Represents a vector layer which manages a vector based data sets.
 
QList< QgsRelation > referencingRelations(int idx) const
Returns the layer's relations, where the foreign key is on this layer.