Skip to content

Commit 1b0bd51

Browse files
committed
Registry
1 parent 5e27163 commit 1b0bd51

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

python/core/auto_generated/qgsgeometryoptions.sip.in

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010

1111

12+
1213
class QgsGeometryOptions
1314
{
1415
%Docstring
@@ -72,6 +73,34 @@ Determines if at least one fix is enabled.
7273
%Docstring
7374
Apply any fixes configured on this class to ``geometry``.
7475

76+
.. versionadded:: 3.4
77+
%End
78+
79+
QStringList geometryChecks() const;
80+
%Docstring
81+
A list of activated geometry checks.
82+
83+
.. versionadded:: 3.4
84+
%End
85+
86+
void setGeometryChecks( const QStringList &geometryChecks );
87+
%Docstring
88+
A list of activated geometry checks.
89+
90+
.. versionadded:: 3.4
91+
%End
92+
93+
QVariantMap checkConfiguration( const QString &checkId ) const;
94+
%Docstring
95+
Access the configuration for the check ``checkId``.
96+
97+
.. versionadded:: 3.4
98+
%End
99+
100+
void setCheckConfiguration( const QString &checkId, const QVariantMap &checkConfiguration );
101+
%Docstring
102+
Set the configuration for the check ``checkId``.
103+
75104
.. versionadded:: 3.4
76105
%End
77106

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/***************************************************************************
2+
qgsgeometrycheckfactory.cpp
3+
--------------------------------------
4+
Date : September 2018
5+
Copyright : (C) 2018 Matthias Kuhn
6+
Email : matthias@opengis.ch
7+
***************************************************************************
8+
* *
9+
* This program is free software; you can redistribute it and/or modify *
10+
* it under the terms of the GNU General Public License as published by *
11+
* the Free Software Foundation; either version 2 of the License, or *
12+
* (at your option) any later version. *
13+
* *
14+
***************************************************************************/
15+
16+
#include "qgsgeometrycheckfactory.h"
17+
18+
#include "qgis.h"

src/app/qgsgeometryvalidationmodel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ QVariant QgsGeometryValidationModel::data( const QModelIndex &index, int role )
6262
#endif
6363
}
6464

65+
6566
case Qt::DecorationRole:
6667
{
6768
if ( mGeometryValidationService->validationActive( mCurrentLayer, featureItem.fid ) )

src/app/qgsgeometryvalidationservice.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ email : matthias@opengis.ch
2424
QgsGeometryValidationService::QgsGeometryValidationService( QgsProject *project )
2525
{
2626
connect( project, &QgsProject::layersAdded, this, &QgsGeometryValidationService::onLayersAdded );
27+
mIsValidGeometryCheck = new QgsIsValidGeometryCheck();
2728
}
2829

2930
QgsGeometryValidationService::~QgsGeometryValidationService()

0 commit comments

Comments
 (0)