Skip to content
Permalink
Browse files

Add some api documentations for new functions

  • Loading branch information
signedav committed Oct 25, 2017
1 parent f7073d0 commit 82d94aad9daf88b62ca18618363eae03bde3850c
Showing with 10 additions and 0 deletions.
  1. +5 −0 python/core/qgsvectorlayerutils.sip
  2. +5 −0 src/core/qgsvectorlayerutils.h
@@ -99,6 +99,11 @@ class QgsVectorLayerUtils
Duplicates a feature and it's children (one level deep). It calls CreateFeature, so
default values and constraints (e.g., unique constraints) will automatically be handled.
The duplicated feature will be automatically inserted into the layer.
\param layer
\param feature the active feature
\param project
\param depth the higher this number the deeper the level - With depth > 0 the children of the feature are not duplicated
\param duplicateFeatureContext stores all the layers and the featureids of the duplicated features (incl. childs)
.. versionadded:: 3.0
:rtype: QgsFeature
%End
@@ -109,6 +109,11 @@ class CORE_EXPORT QgsVectorLayerUtils
* Duplicates a feature and it's children (one level deep). It calls CreateFeature, so
* default values and constraints (e.g., unique constraints) will automatically be handled.
* The duplicated feature will be automatically inserted into the layer.
* \param layer
* \param feature the active feature
* \param project
* \param depth the higher this number the deeper the level - With depth > 0 the children of the feature are not duplicated
* \param duplicateFeatureContext stores all the layers and the featureids of the duplicated features (incl. childs)
* \since QGIS 3.0
*/
static QgsFeature duplicateFeature( QgsVectorLayer *layer, const QgsFeature &feature, QgsProject *project, int depth, QgsDuplicateFeatureContext &duplicateFeatureContext SIP_OUT );

0 comments on commit 82d94aa

Please sign in to comment.
You can’t perform that action at this time.