Skip to content
Permalink
Browse files
Since QGIS 3.24
  • Loading branch information
domi4484 committed Nov 8, 2021
1 parent 2009ca7 commit d9498f3780b0898cdab0a9f1144ef2b6830b0b64
@@ -252,7 +252,7 @@ Set multiple feature to edit simultaneously.

:param fids: Multiple Id of features to edit

.. versionadded:: 3.22
.. versionadded:: 3.24
%End

void setVisible( bool visible );
@@ -82,7 +82,7 @@ Set multiple feature to edit simultaneously.

:param fids: Multiple Id of features to edit

.. versionadded:: 3.22
.. versionadded:: 3.24
%End

virtual void setEditorContext( const QgsAttributeEditorContext &context );
@@ -188,7 +188,9 @@ Saves the current modifications in the relation

QgsFeatureIds addFeature( const QgsGeometry &geometry = QgsGeometry() );
%Docstring
Adds a new feature with given ``geometry``
Adds new features with given ``geometry``

.. versionadded:: 3.24
%End

void deleteFeature( QgsFeatureId fid = QgsFeatureId() );
@@ -225,7 +227,7 @@ Duplicates features
%Docstring
Return true if editing multiple features at a time

.. versionadded:: 3.22
.. versionadded:: 3.24
%End

protected:
@@ -40,7 +40,7 @@ Set multiple feature to edit simultaneously.

:param fids: Multiple Id of features to edit

.. versionadded:: 3.22
.. versionadded:: 3.24
%End

};
@@ -216,7 +216,7 @@ class GUI_EXPORT QgsRelationWidgetWrapper : public QgsWidgetWrapper
/**
* Set multiple feature to edit simultaneously.
* \param fids Multiple Id of features to edit
* \since QGIS 3.22
* \since QGIS 3.24
*/
void setMultiEditFeatureIds( const QgsFeatureIds &fids );

@@ -107,7 +107,6 @@ void QgsAbstractRelationEditorWidget::setFeature( const QgsFeature &feature, boo
mFeatureList.clear();
mFeatureList.append( feature );

// Is this OK???
mEditorContext.setFormFeature( feature );

if ( update )
@@ -122,6 +121,9 @@ void QgsAbstractRelationEditorWidget::setMultiEditFeatureIds( const QgsFeatureId
QgsFeature feature;
while ( featureIterator.nextFeature( feature ) )
mFeatureList.append( feature );

if ( ! mFeatureList.isEmpty() )
mEditorContext.setFormFeature( mFeatureList.first() );
}

void QgsAbstractRelationEditorWidget::setNmRelationId( const QVariant &nmRelationId )
@@ -100,7 +100,7 @@ class GUI_EXPORT QgsAbstractRelationEditorWidget : public QWidget
/**
* Set multiple feature to edit simultaneously.
* \param fids Multiple Id of features to edit
* \since QGIS 3.22
* \since QGIS 3.24
*/
void setMultiEditFeatureIds( const QgsFeatureIds &fids );

@@ -197,7 +197,8 @@ class GUI_EXPORT QgsAbstractRelationEditorWidget : public QWidget
void saveEdits();

/**
* Adds a new feature with given \a geometry
* Adds new features with given \a geometry
* Return the Id of added features \since QGIS 3.24
*/
QgsFeatureIds addFeature( const QgsGeometry &geometry = QgsGeometry() );

@@ -233,7 +234,7 @@ class GUI_EXPORT QgsAbstractRelationEditorWidget : public QWidget

/**
* Return true if editing multiple features at a time
* \since QGIS 3.22
* \since QGIS 3.24
*/
bool multiEditModeActive() const;

@@ -47,7 +47,7 @@ class GUI_EXPORT QgsAttributeFormRelationEditorWidget : public QgsAttributeFormW
/**
* Set multiple feature to edit simultaneously.
* \param fids Multiple Id of features to edit
* \since QGIS 3.22
* \since QGIS 3.24
*/
void setMultiEditFeatureIds( const QgsFeatureIds &fids );

0 comments on commit d9498f3

Please sign in to comment.