Skip to content
Permalink
Browse files

Registry

  • Loading branch information
m-kuhn committed Sep 14, 2018
1 parent 5e27163 commit 1b0bd51434a0e8b94f7bc50f3c6c7d4ae58b4b69
@@ -9,6 +9,7 @@




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

.. versionadded:: 3.4
%End

QStringList geometryChecks() const;
%Docstring
A list of activated geometry checks.

.. versionadded:: 3.4
%End

void setGeometryChecks( const QStringList &geometryChecks );
%Docstring
A list of activated geometry checks.

.. versionadded:: 3.4
%End

QVariantMap checkConfiguration( const QString &checkId ) const;
%Docstring
Access the configuration for the check ``checkId``.

.. versionadded:: 3.4
%End

void setCheckConfiguration( const QString &checkId, const QVariantMap &checkConfiguration );
%Docstring
Set the configuration for the check ``checkId``.

.. versionadded:: 3.4
%End

@@ -0,0 +1,18 @@
/***************************************************************************
qgsgeometrycheckfactory.cpp
--------------------------------------
Date : September 2018
Copyright : (C) 2018 Matthias Kuhn
Email : matthias@opengis.ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/

#include "qgsgeometrycheckfactory.h"

#include "qgis.h"
@@ -62,6 +62,7 @@ QVariant QgsGeometryValidationModel::data( const QModelIndex &index, int role )
#endif
}


case Qt::DecorationRole:
{
if ( mGeometryValidationService->validationActive( mCurrentLayer, featureItem.fid ) )
@@ -24,6 +24,7 @@ email : matthias@opengis.ch
QgsGeometryValidationService::QgsGeometryValidationService( QgsProject *project )
{
connect( project, &QgsProject::layersAdded, this, &QgsGeometryValidationService::onLayersAdded );
mIsValidGeometryCheck = new QgsIsValidGeometryCheck();
}

QgsGeometryValidationService::~QgsGeometryValidationService()

0 comments on commit 1b0bd51

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