Skip to content
Permalink
Browse files

Add missing docstrings

  • Loading branch information
m-kuhn committed Aug 21, 2018
1 parent 256876e commit 1d6d4cb11c8725a94a57d97f6e68973cd65e5e11
Showing with 62 additions and 2 deletions.
  1. +31 −1 python/core/auto_generated/qgsvectorlayer.sip.in
  2. +31 −1 src/core/qgsvectorlayer.h
@@ -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:

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

0 comments on commit 1d6d4cb

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