improved api doc

This commit is contained in:
David 2017-10-26 10:28:42 +02:00
parent 69f069a353
commit 3dbffb07a4
2 changed files with 7 additions and 13 deletions

View File

@ -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

View File

@ -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 );