Skip to content

Commit 3dbffb0

Browse files
committedOct 26, 2017
improved api doc
1 parent 69f069a commit 3dbffb0

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed
 

‎python/core/qgsvectorlayerutils.sip

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class QgsVectorLayerUtils
3939

4040
QList<QgsVectorLayer *> layers() const;
4141
%Docstring
42-
Returns all the layers in the member QMap mDuplicatedFeatures
42+
Returns all the layers on which features have been duplicated
4343
.. versionadded:: 3.0
4444
:rtype: list of QgsVectorLayer
4545
%End
@@ -99,11 +99,8 @@ 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. children)
102+
``depth`` the higher this number the deeper the level - With depth > 0 the children of the feature are not duplicated
103+
``duplicateFeatureContext`` stores all the layers and the featureids of the duplicated features (incl. children)
107104
.. versionadded:: 3.0
108105
:rtype: QgsFeature
109106
%End

‎src/core/qgsvectorlayerutils.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class CORE_EXPORT QgsVectorLayerUtils
4646
QgsDuplicateFeatureContext() {}
4747

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

6565
/**
66-
* To set an entry to the member QMap mDuplicatedFeatures
66+
* To set info about duplicated features to the function feedback (layout and ids)
6767
* \since QGIS 3.0
6868
*/
6969
void setDuplicatedFeatures( QgsVectorLayer *layer, QgsFeatureIds ids );
@@ -109,11 +109,8 @@ 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. children)
112+
* \a depth the higher this number the deeper the level - With depth > 0 the children of the feature are not duplicated
113+
* \a duplicateFeatureContext stores all the layers and the featureids of the duplicated features (incl. children)
117114
* \since QGIS 3.0
118115
*/
119116
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.