QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | List of all members
QgsRelationEditorConfigWidget Class Reference

Creates a new configuration widget for the relation editor widget. More...

#include <qgsrelationeditorwidget.h>

Inheritance diagram for QgsRelationEditorConfigWidget:
Inheritance graph
[legend]

Public Member Functions

 QgsRelationEditorConfigWidget (const QgsRelation &relation, QWidget *parent)
 Create a new configuration widget. More...
 
QVariantMap config () override
 Create a configuration from the current GUI state. More...
 
void setConfig (const QVariantMap &config) override
 Update the configuration widget to represent the given configuration. More...
 
- Public Member Functions inherited from QgsAbstractRelationEditorConfigWidget
 QgsAbstractRelationEditorConfigWidget (const QgsRelation &relation, QWidget *parent)
 Create a new configuration widget. More...
 
virtual QVariantMap config ()=0
 Create a configuration from the current GUI state. More...
 
QgsVectorLayerlayer ()
 Returns the layer for which this configuration widget applies. More...
 
virtual QgsRelation nmRelation () const
 Returns the nm relation for which this configuration widget applies. More...
 
QgsRelation relation () const
 Returns the relation for which this configuration widget applies. More...
 
virtual void setConfig (const QVariantMap &config)=0
 Update the configuration widget to represent the given configuration. More...
 
virtual void setNmRelation (const QgsRelation &nmRelation)
 Set the nm relation for this widget. More...
 

Detailed Description

Creates a new configuration widget for the relation editor widget.

Since
QGIS 3.18

Definition at line 278 of file qgsrelationeditorwidget.h.

Constructor & Destructor Documentation

◆ QgsRelationEditorConfigWidget()

QgsRelationEditorConfigWidget::QgsRelationEditorConfigWidget ( const QgsRelation relation,
QWidget *  parent 
)
explicit

Create a new configuration widget.

Parameters
relationThe relation for which the configuration dialog will be created
parentA parent widget

Definition at line 941 of file qgsrelationeditorwidget.cpp.

Member Function Documentation

◆ config()

QVariantMap QgsRelationEditorConfigWidget::config ( )
overridevirtual

Create a configuration from the current GUI state.

Returns
A widget configuration

Implements QgsAbstractRelationEditorConfigWidget.

Definition at line 947 of file qgsrelationeditorwidget.cpp.

◆ setConfig()

void QgsRelationEditorConfigWidget::setConfig ( const QVariantMap &  config)
overridevirtual

Update the configuration widget to represent the given configuration.

Parameters
configThe configuration which should be represented by this widget

Implements QgsAbstractRelationEditorConfigWidget.

Definition at line 966 of file qgsrelationeditorwidget.cpp.


The documentation for this class was generated from the following files: