Skip to content

Commit 82d94aa

Browse files
committedOct 25, 2017
Add some api documentations for new functions
1 parent f7073d0 commit 82d94aa

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
 

‎python/core/qgsvectorlayerutils.sip

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ class QgsVectorLayerUtils
9999
Duplicates a feature and it's children (one level deep). It calls CreateFeature, so
100100
default values and constraints (e.g., unique constraints) will automatically be handled.
101101
The duplicated feature will be automatically inserted into the layer.
102+
\param layer
103+
\param feature the active feature
104+
\param project
105+
\param depth the higher this number the deeper the level - With depth > 0 the children of the feature are not duplicated
106+
\param duplicateFeatureContext stores all the layers and the featureids of the duplicated features (incl. childs)
102107
.. versionadded:: 3.0
103108
:rtype: QgsFeature
104109
%End

‎src/core/qgsvectorlayerutils.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ class CORE_EXPORT QgsVectorLayerUtils
109109
* Duplicates a feature and it's children (one level deep). It calls CreateFeature, so
110110
* default values and constraints (e.g., unique constraints) will automatically be handled.
111111
* The duplicated feature will be automatically inserted into the layer.
112+
* \param layer
113+
* \param feature the active feature
114+
* \param project
115+
* \param depth the higher this number the deeper the level - With depth > 0 the children of the feature are not duplicated
116+
* \param duplicateFeatureContext stores all the layers and the featureids of the duplicated features (incl. childs)
112117
* \since QGIS 3.0
113118
*/
114119
static QgsFeature duplicateFeature( QgsVectorLayer *layer, const QgsFeature &feature, QgsProject *project, int depth, QgsDuplicateFeatureContext &duplicateFeatureContext SIP_OUT );

0 commit comments

Comments
 (0)
Please sign in to comment.