Skip to content

Commit 1d6d4cb

Browse files
committedAug 21, 2018
Add missing docstrings
1 parent 256876e commit 1d6d4cb

File tree

2 files changed

+62
-2
lines changed

2 files changed

+62
-2
lines changed
 

‎python/core/auto_generated/qgsvectorlayer.sip.in

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2235,12 +2235,42 @@ Test if an edit command is active
22352235
.. versionadded:: 3.0
22362236
%End
22372237

2238-
22392238
bool removeDuplicateNodes() const;
2239+
%Docstring
2240+
If the `removeDuplicateNodes` property is set on a layer, whenever a new feature enters
2241+
the edit buffer or the geometry of an existing feature is changed, duplicate nodes will
2242+
automatically be removed without any user intervention.
2243+
2244+
.. versionadded:: 3.4
2245+
%End
2246+
22402247
void setRemoveDuplicateNodes( bool removeDuplicateNodes );
2248+
%Docstring
2249+
If the `removeDuplicateNodes` property is set on a layer, whenever a new feature enters
2250+
the edit buffer or the geometry of an existing feature is changed, duplicate nodes will
2251+
automatically be removed without any user intervention.
2252+
2253+
.. versionadded:: 3.4
2254+
%End
2255+
22412256

22422257
double geometryPrecision() const;
2258+
%Docstring
2259+
The `geometryPrecision` property of a layer will enable an automatic snap to grid operation
2260+
on a layer whenever a new feature is added or the geometry of an existing feature is changed.
2261+
If it is set to 0.0, this feature is disabled.
2262+
2263+
.. versionadded:: 3.4
2264+
%End
2265+
22432266
void setGeometryPrecision( double geometryPrecision );
2267+
%Docstring
2268+
The `geometryPrecision` property of a layer will enable an automatic snap to grid
2269+
on a layer whenever a new feature is added or the geometry of an existing feature is changed.
2270+
If it is set to 0.0, this feature is disabled.
2271+
2272+
.. versionadded:: 3.4
2273+
%End
22442274

22452275
public slots:
22462276

‎src/core/qgsvectorlayer.h

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2018,11 +2018,41 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
20182018
*/
20192019
bool isEditCommandActive() const { return mEditCommandActive; }
20202020

2021-
2021+
/**
2022+
* If the `removeDuplicateNodes` property is set on a layer, whenever a new feature enters
2023+
* the edit buffer or the geometry of an existing feature is changed, duplicate nodes will
2024+
* automatically be removed without any user intervention.
2025+
*
2026+
* \since QGIS 3.4
2027+
*/
20222028
bool removeDuplicateNodes() const;
2029+
2030+
/**
2031+
* If the `removeDuplicateNodes` property is set on a layer, whenever a new feature enters
2032+
* the edit buffer or the geometry of an existing feature is changed, duplicate nodes will
2033+
* automatically be removed without any user intervention.
2034+
*
2035+
* \since QGIS 3.4
2036+
*/
20232037
void setRemoveDuplicateNodes( bool removeDuplicateNodes );
20242038

2039+
2040+
/**
2041+
* The `geometryPrecision` property of a layer will enable an automatic snap to grid operation
2042+
* on a layer whenever a new feature is added or the geometry of an existing feature is changed.
2043+
* If it is set to 0.0, this feature is disabled.
2044+
*
2045+
* \since QGIS 3.4
2046+
*/
20252047
double geometryPrecision() const;
2048+
2049+
/**
2050+
* The `geometryPrecision` property of a layer will enable an automatic snap to grid
2051+
* on a layer whenever a new feature is added or the geometry of an existing feature is changed.
2052+
* If it is set to 0.0, this feature is disabled.
2053+
*
2054+
* \since QGIS 3.4
2055+
*/
20262056
void setGeometryPrecision( double geometryPrecision );
20272057

20282058
public slots:

0 commit comments

Comments
 (0)
Please sign in to comment.