Skip to content
Permalink
Browse files
Relation editor widget get list of editing features
  • Loading branch information
domi4484 committed Jan 12, 2022
1 parent fd1b819 commit c8dd03bc96d68fbdbb2e96b165c614c0ba4845c1
@@ -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
{

}

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 c8dd03b

Please sign in to comment.