Skip to content
Permalink
Browse files

New API for check filtering

  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent 7b3221f commit 0ef292322ac1668667694560cff6031f4f5c263b
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsvectorlayerproperties.cpp
@@ -413,7 +413,7 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
mPrecisionUnitsLabel->setText( QStringLiteral( "[%1]" ).arg( QgsUnitTypes::toAbbreviatedString( mLayer->crs().mapUnits() ) ) );

QLayout *geometryCheckLayout = new QVBoxLayout();
const QList<QgsGeometryCheckFactory *> geometryCheckFactories = QgsAnalysis::instance()->geometryCheckRegistry()->geometryCheckFactories( mLayer, QgsGeometryCheck::Flag::SingleGeometryCheck );
const QList<QgsGeometryCheckFactory *> geometryCheckFactories = QgsAnalysis::instance()->geometryCheckRegistry()->geometryCheckFactories( mLayer, QgsGeometryCheck::FeatureNodeCheck, QgsGeometryCheck::Flag::AvailableInValidation );
const QStringList activeChecks = mLayer->geometryOptions()->geometryChecks();
for ( const QgsGeometryCheckFactory *factory : geometryCheckFactories )
{
@@ -425,7 +425,7 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
mGeometryValidationGroupBox->setLayout( geometryCheckLayout );

QLayout *topologyCheckLayout = new QVBoxLayout();
const QList<QgsGeometryCheckFactory *> topologyCheckFactories = QgsAnalysis::instance()->geometryCheckRegistry()->geometryCheckFactories( mLayer, QgsGeometryCheck::Flag::SingleLayerTopologyCheck );
const QList<QgsGeometryCheckFactory *> topologyCheckFactories = QgsAnalysis::instance()->geometryCheckRegistry()->geometryCheckFactories( mLayer, QgsGeometryCheck::LayerCheck, QgsGeometryCheck::Flag::AvailableInValidation );

for ( const QgsGeometryCheckFactory *factory : topologyCheckFactories )
{

0 comments on commit 0ef2923

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