Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed May 8, 2020
1 parent 013b935 commit 0b64a83
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions python/core/auto_generated/qgsvectorlayer.sip.in
Expand Up @@ -1276,7 +1276,7 @@ Deletes a vertex from a feature.
Deletes the selected features

:param deleteCount: The number of successfully deleted features
:param cascade: If the decendants of the feature should be deleted as well
:param context: The chain of features who will be deleted for feedback and to avoid endless recursions

:return: ``True`` in case of success and ``False`` otherwise
%End
Expand Down Expand Up @@ -1961,7 +1961,7 @@ Deletes a list of attribute fields (but does not commit it)
Deletes a feature from the layer (but does not commit it).

:param fid: The feature id to delete
:param cascade: If the decendants of the feature should be deleted as well
:param context: The chain of features who will be deleted for feedback and to avoid endless recursions

.. note::

Expand All @@ -1976,7 +1976,7 @@ Deletes a feature from the layer (but does not commit it).
Deletes a set of features from the layer (but does not commit it)

:param fids: The feature ids to delete
:param cascade: If the decendants of the feature should be deleted as well
:param context: The chain of features who will be deleted for feedback and to avoid endless recursions

:return: ``False`` if the layer is not in edit mode or does not support deleting
in case of an active transaction depends on the provider implementation
Expand Down
2 changes: 2 additions & 0 deletions python/core/auto_generated/qgsvectorlayerjoinbuffer.sip.in
Expand Up @@ -213,6 +213,7 @@ Deletes a feature from joined layers. The feature id given in
parameter is the one coming from the target layer.

:param fid: The feature id from the target layer to delete
:param context: The chain of features who will be deleted for feedback and to avoid endless recursions

:return: ``False`` if an error happened, ``True`` otherwise

Expand All @@ -226,6 +227,7 @@ Deletes a list of features from joined layers. Feature ids given
in a parameter are those coming from the target layer.

:param fids: Feature ids from the target layer to delete
:param context: The chain of features who will be deleted for feedback and to avoid endless recursions

:return: ``False`` if an error happened, ``True`` otherwise

Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -3176,7 +3176,7 @@ bool QgsVectorLayer::deleteFeatureCascade( QgsFeatureId fid, QgsVectorLayer::Del
QgsFeatureIds handledFeatureIds = context->handledFeatures.value( this );
if ( handledFeatureIds.contains( fid ) )
{
// break recursion
// avoid endless recursion
return false;
}
else
Expand Down
6 changes: 3 additions & 3 deletions src/core/qgsvectorlayer.h
Expand Up @@ -1295,7 +1295,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
/**
* Deletes the selected features
* \param deleteCount The number of successfully deleted features
* \param cascade If the decendants of the feature should be deleted as well
* \param context The chain of features who will be deleted for feedback and to avoid endless recursions
*
* \returns TRUE in case of success and FALSE otherwise
*/
Expand Down Expand Up @@ -1832,7 +1832,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
/**
* Deletes a feature from the layer (but does not commit it).
* \param fid The feature id to delete
* \param cascade If the decendants of the feature should be deleted as well
* \param context The chain of features who will be deleted for feedback and to avoid endless recursions
*
* \note Calls to deleteFeature() are only valid for layers in which edits have been enabled
* by a call to startEditing(). Changes made to features using this method are not committed
Expand All @@ -1844,7 +1844,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
/**
* Deletes a set of features from the layer (but does not commit it)
* \param fids The feature ids to delete
* \param cascade If the decendants of the feature should be deleted as well
* \param context The chain of features who will be deleted for feedback and to avoid endless recursions
*
* \returns FALSE if the layer is not in edit mode or does not support deleting
* in case of an active transaction depends on the provider implementation
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsvectorlayerjoinbuffer.h
Expand Up @@ -197,6 +197,7 @@ class CORE_EXPORT QgsVectorLayerJoinBuffer : public QObject, public QgsFeatureSi
* parameter is the one coming from the target layer.
*
* \param fid The feature id from the target layer to delete
* \param context The chain of features who will be deleted for feedback and to avoid endless recursions
*
* \returns FALSE if an error happened, TRUE otherwise
*
Expand All @@ -209,6 +210,7 @@ class CORE_EXPORT QgsVectorLayerJoinBuffer : public QObject, public QgsFeatureSi
* in a parameter are those coming from the target layer.
*
* \param fids Feature ids from the target layer to delete
* \param context The chain of features who will be deleted for feedback and to avoid endless recursions
*
* \returns FALSE if an error happened, TRUE otherwise
*
Expand Down

0 comments on commit 0b64a83

Please sign in to comment.