Relation editor widget get list of editing features

This commit is contained in:
Damiano Lombardi 2022-01-12 09:45:16 +01:00
parent fd1b819243
commit c8dd03bc96
3 changed files with 23 additions and 0 deletions

View File

@ -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;

View File

@ -187,6 +187,11 @@ QgsFeature QgsAbstractRelationEditorWidget::feature() const
return QgsFeature();
}
QList<QgsFeature> QgsAbstractRelationEditorWidget::features() const
{
}
void QgsAbstractRelationEditorWidget::toggleEditing( bool state )
{
if ( state )

View File

@ -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
*/