Skip to content
Permalink
Browse files

Protected -> Private

  • Loading branch information
m-kuhn committed Jul 6, 2017
1 parent 11e24c2 commit 91f908f7544195b18e04c966259fecd094ce6c97
Showing with 27 additions and 2 deletions.
  1. +10 −0 src/app/qgsmaptooladdfeature.cpp
  2. +16 −1 src/app/qgsmaptooladdfeature.h
  3. +1 −1 src/plugins/grass/qgsgrassaddfeature.cpp
@@ -68,6 +68,16 @@ void QgsMapToolAddFeature::activate()
QgsMapToolCapture::activate();
}

bool QgsMapToolAddFeature::checkGeometryType() const
{
return mCheckGeometryType;
}

void QgsMapToolAddFeature::setCheckGeometryType( bool checkGeometryType )
{
mCheckGeometryType = checkGeometryType;
}

void QgsMapToolAddFeature::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
{
QgsVectorLayer *vlayer = currentVectorLayer();
@@ -31,7 +31,22 @@ class APP_EXPORT QgsMapToolAddFeature : public QgsMapToolCapture

protected:

/** Check if CaptureMode match layer type. Default is true.
/**
* Check if CaptureMode matches layer type. Default is true.
* \since QGIS 3.0
*/
bool checkGeometryType() const;

/**
* Check if CaptureMode matches layer type. Default is true.
* \since QGIS 3.0
*/
void setCheckGeometryType( bool checkGeometryType );

private:
QVariant snappingMatchesAsVariable() const;

/** Check if CaptureMode matches layer type. Default is true.
* \since QGIS 2.12 */
bool mCheckGeometryType;
};
@@ -19,7 +19,7 @@
QgsGrassAddFeature::QgsGrassAddFeature( QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolAddFeature( canvas, mode )
{
mCheckGeometryType = false;
setCheckGeometryType( false );
}

QgsGrassAddFeature::~QgsGrassAddFeature()

0 comments on commit 91f908f

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