Skip to content
Permalink
Browse files

improved api doc

  • Loading branch information
signedav committed Oct 26, 2017
1 parent 69f069a commit 3dbffb07a4f7f56f3ed831390a37f8906c1da6a4
Showing with 7 additions and 13 deletions.
  1. +3 −6 python/core/qgsvectorlayerutils.sip
  2. +4 −7 src/core/qgsvectorlayerutils.h
@@ -39,7 +39,7 @@ class QgsVectorLayerUtils

QList<QgsVectorLayer *> layers() const;
%Docstring
Returns all the layers in the member QMap mDuplicatedFeatures
Returns all the layers on which features have been duplicated
.. versionadded:: 3.0
:rtype: list of QgsVectorLayer
%End
@@ -99,11 +99,8 @@ 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. children)
``depth`` the higher this number the deeper the level - With depth > 0 the children of the feature are not duplicated
``duplicateFeatureContext`` stores all the layers and the featureids of the duplicated features (incl. children)
.. versionadded:: 3.0
:rtype: QgsFeature
%End
@@ -46,7 +46,7 @@ class CORE_EXPORT QgsVectorLayerUtils
QgsDuplicateFeatureContext() {}

/**
* Returns all the layers in the member QMap mDuplicatedFeatures
* Returns all the layers on which features have been duplicated
* \since QGIS 3.0
*/
QList<QgsVectorLayer *> layers() const;
@@ -63,7 +63,7 @@ class CORE_EXPORT QgsVectorLayerUtils
friend class QgsVectorLayerUtils;

/**
* To set an entry to the member QMap mDuplicatedFeatures
* To set info about duplicated features to the function feedback (layout and ids)
* \since QGIS 3.0
*/
void setDuplicatedFeatures( QgsVectorLayer *layer, QgsFeatureIds ids );
@@ -109,11 +109,8 @@ 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. children)
* \a depth the higher this number the deeper the level - With depth > 0 the children of the feature are not duplicated
* \a duplicateFeatureContext stores all the layers and the featureids of the duplicated features (incl. children)
* \since QGIS 3.0
*/
static QgsFeature duplicateFeature( QgsVectorLayer *layer, const QgsFeature &feature, QgsProject *project, int depth, QgsDuplicateFeatureContext &duplicateFeatureContext SIP_OUT );

0 comments on commit 3dbffb0

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