Add missing docstrings

This commit is contained in:
Matthias Kuhn 2018-08-21 15:02:24 +02:00
parent 256876eb45
commit 1d6d4cb11c
2 changed files with 62 additions and 2 deletions

View File

@ -2235,12 +2235,42 @@ Test if an edit command is active
.. versionadded:: 3.0
%End
bool removeDuplicateNodes() const;
%Docstring
If the `removeDuplicateNodes` property is set on a layer, whenever a new feature enters
the edit buffer or the geometry of an existing feature is changed, duplicate nodes will
automatically be removed without any user intervention.
.. versionadded:: 3.4
%End
void setRemoveDuplicateNodes( bool removeDuplicateNodes );
%Docstring
If the `removeDuplicateNodes` property is set on a layer, whenever a new feature enters
the edit buffer or the geometry of an existing feature is changed, duplicate nodes will
automatically be removed without any user intervention.
.. versionadded:: 3.4
%End
double geometryPrecision() const;
%Docstring
The `geometryPrecision` property of a layer will enable an automatic snap to grid operation
on a layer whenever a new feature is added or the geometry of an existing feature is changed.
If it is set to 0.0, this feature is disabled.
.. versionadded:: 3.4
%End
void setGeometryPrecision( double geometryPrecision );
%Docstring
The `geometryPrecision` property of a layer will enable an automatic snap to grid
on a layer whenever a new feature is added or the geometry of an existing feature is changed.
If it is set to 0.0, this feature is disabled.
.. versionadded:: 3.4
%End
public slots:

View File

@ -2018,11 +2018,41 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
*/
bool isEditCommandActive() const { return mEditCommandActive; }
/**
* If the `removeDuplicateNodes` property is set on a layer, whenever a new feature enters
* the edit buffer or the geometry of an existing feature is changed, duplicate nodes will
* automatically be removed without any user intervention.
*
* \since QGIS 3.4
*/
bool removeDuplicateNodes() const;
/**
* If the `removeDuplicateNodes` property is set on a layer, whenever a new feature enters
* the edit buffer or the geometry of an existing feature is changed, duplicate nodes will
* automatically be removed without any user intervention.
*
* \since QGIS 3.4
*/
void setRemoveDuplicateNodes( bool removeDuplicateNodes );
/**
* The `geometryPrecision` property of a layer will enable an automatic snap to grid operation
* on a layer whenever a new feature is added or the geometry of an existing feature is changed.
* If it is set to 0.0, this feature is disabled.
*
* \since QGIS 3.4
*/
double geometryPrecision() const;
/**
* The `geometryPrecision` property of a layer will enable an automatic snap to grid
* on a layer whenever a new feature is added or the geometry of an existing feature is changed.
* If it is set to 0.0, this feature is disabled.
*
* \since QGIS 3.4
*/
void setGeometryPrecision( double geometryPrecision );
public slots: