Skip to content
Permalink
Browse files

docstrings

  • Loading branch information
m-kuhn committed Sep 12, 2018
1 parent 56d299e commit 71dbd5a5fe320896ebbebf86f371f6e2712784a9
Showing with 9 additions and 3 deletions.
  1. +0 −3 src/app/qgsgeometryvalidationservice.cpp
  2. +9 −0 src/app/qgsgeometryvalidationservice.h
@@ -24,13 +24,10 @@ email : matthias@opengis.ch
QgsGeometryValidationService::QgsGeometryValidationService( QgsProject *project )
{
connect( project, &QgsProject::layersAdded, this, &QgsGeometryValidationService::onLayersAdded );

mIsValidGeometryCheck = new QgsIsValidGeometryCheck();
}

QgsGeometryValidationService::~QgsGeometryValidationService()
{
delete mIsValidGeometryCheck;
}

bool QgsGeometryValidationService::validationActive( QgsVectorLayer *layer, QgsFeatureId feature ) const
@@ -27,6 +27,11 @@ class QgsVectorLayer;
// TODO: Should be retrieved from registry!!
class QgsIsValidGeometryCheck;


/**
* This service connects to all layers in a project and triggers validation
* of features whenever they are edited.
*/
class QgsGeometryValidationService : public QObject
{
Q_OBJECT
@@ -49,6 +54,10 @@ class QgsGeometryValidationService : public QObject
QgsGeometryValidationService( QgsProject *project );
~QgsGeometryValidationService();

/**
* Returns if a validation is active for the specified \a feature on
* \a layer.
*/
bool validationActive( QgsVectorLayer *layer, QgsFeatureId feature ) const;

signals:

0 comments on commit 71dbd5a

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