Skip to content

Commit 5e27163

Browse files
committed
Save geometry configuration to layer
1 parent 71dbd5a commit 5e27163

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

src/core/qgsgeometryoptions.h

+31
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,34 @@ class CORE_EXPORT QgsGeometryOptions
8585
*/
8686
void apply( QgsGeometry &geometry ) const;
8787

88+
/**
89+
* A list of activated geometry checks.
90+
*
91+
* \since QGIS 3.4
92+
*/
93+
QStringList geometryChecks() const;
94+
95+
/**
96+
* A list of activated geometry checks.
97+
*
98+
* \since QGIS 3.4
99+
*/
100+
void setGeometryChecks( const QStringList &geometryChecks );
101+
102+
/**
103+
* Access the configuration for the check \a checkId.
104+
*
105+
* \since QGIS 3.4
106+
*/
107+
QVariantMap checkConfiguration( const QString &checkId ) const;
108+
109+
/**
110+
* Set the configuration for the check \a checkId.
111+
*
112+
* \since QGIS 3.4
113+
*/
114+
void setCheckConfiguration( const QString &checkId, const QVariantMap &checkConfiguration );
115+
88116
/**
89117
* Write the geometry options to the \a node.
90118
*
@@ -116,6 +144,9 @@ class CORE_EXPORT QgsGeometryOptions
116144
* \since QGIS 3.4
117145
*/
118146
double mGeometryPrecision = 0.0;
147+
148+
QStringList mGeometryChecks;
149+
QVariantMap mCheckConfiguration;
119150
};
120151

121152
#endif // QGSGEOMETRYOPTIONS_H

0 commit comments

Comments
 (0)