Skip to content

Commit

Permalink
Relation editor widget get list of editing features
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 committed Jan 12, 2022
1 parent fd1b819 commit c8dd03b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/gui/auto_generated/qgsabstractrelationeditorwidget.sip.in
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions src/gui/qgsabstractrelationeditorwidget.cpp
Expand Up @@ -187,6 +187,11 @@ QgsFeature QgsAbstractRelationEditorWidget::feature() const
return QgsFeature();
}

QList<QgsFeature> QgsAbstractRelationEditorWidget::features() const
{

}

void QgsAbstractRelationEditorWidget::toggleEditing( bool state )
{
if ( state )
Expand Down
8 changes: 8 additions & 0 deletions src/gui/qgsabstractrelationeditorwidget.h
Expand Up @@ -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
*/
Expand Down

0 comments on commit c8dd03b

Please sign in to comment.