Skip to content

Commit

Permalink
Add some api documentations for new functions
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Oct 25, 2017
1 parent f7073d0 commit 82d94aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/core/qgsvectorlayerutils.sip
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/core/qgsvectorlayerutils.h
Expand Up @@ -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 );
Expand Down

0 comments on commit 82d94aa

Please sign in to comment.