Skip to content
Permalink
Browse files
Merge pull request #46802 from domi4484/relationEditorGetMultipleFeat…
…ures
  • Loading branch information
m-kuhn committed Jan 14, 2022
2 parents e39f980 + 4437dec commit c5a56d6f83e08b77967326add5ad215e3a0c948e
@@ -144,6 +144,16 @@ If it's empty it takes the relation id as label
QgsFeature feature() const;
%Docstring
Returns the widget's current feature
If the widget is in multiedit mode only the first is returned

.. seealso:: :py:func:`features`
%End

QList<QgsFeature> features() const;
%Docstring
Returns the widget's current features

.. versionadded:: 3.24
%End

bool forceSuppressFormPopup() const;
@@ -187,6 +187,11 @@ QgsFeature QgsAbstractRelationEditorWidget::feature() const
return QgsFeature();
}

QList<QgsFeature> QgsAbstractRelationEditorWidget::features() const
{
return mFeatureList;
}

void QgsAbstractRelationEditorWidget::toggleEditing( bool state )
{
if ( state )
@@ -153,9 +153,17 @@ class GUI_EXPORT QgsAbstractRelationEditorWidget : public QWidget

/**
* Returns the widget's current feature
* If the widget is in multiedit mode only the first is returned
* \see features
*/
QgsFeature feature() const;

/**
* Returns the widget's current features
* \since QGIS 3.24
*/
QList<QgsFeature> features() const;

/**
* Determines the force suppress form popup status that is configured for this widget
*/

0 comments on commit c5a56d6

Please sign in to comment.