Skip to content
Permalink
Browse files

remove setParentTool method in QgsMapToolAddCircularString

  • Loading branch information
lbartoletti committed Oct 9, 2017
1 parent 00e12bc commit 5a9278b51e4ac2e1d0b74b5af7f5db9cd858a887
Showing with 8 additions and 8 deletions.
  1. +6 −6 src/app/qgsmaptooladdcircularstring.cpp
  2. +2 −2 src/app/qgsmaptooladdcircularstring.h
@@ -29,10 +29,10 @@ QgsMapToolAddCircularString::QgsMapToolAddCircularString( QgsMapToolCapture *par
, mParentTool( parentTool )
, mShowCenterPointRubberBand( false )
{
if ( mCanvas )
{
connect( mCanvas, &QgsMapCanvas::mapToolSet, this, &QgsMapToolAddCircularString::setParentTool );
}
/* if ( mCanvas )
{
connect( mCanvas, &QgsMapCanvas::mapToolSet, this, &QgsMapToolAddCircularString::setParentTool );
}*/
connect( QgisApp::instance(), &QgisApp::newProject, this, &QgsMapToolAddCircularString::stopCapturing );
connect( QgisApp::instance(), &QgisApp::projectRead, this, &QgsMapToolAddCircularString::stopCapturing );
}
@@ -43,7 +43,7 @@ QgsMapToolAddCircularString::~QgsMapToolAddCircularString()
delete mTempRubberBand;
removeCenterPointRubberBand();
}

/*
void QgsMapToolAddCircularString::setParentTool( QgsMapTool *newTool, QgsMapTool *oldTool )
{
QgsMapToolCapture *tool = dynamic_cast<QgsMapToolCapture *>( oldTool );
@@ -56,7 +56,7 @@ void QgsMapToolAddCircularString::setParentTool( QgsMapTool *newTool, QgsMapTool
{
mParentTool = tool;
}
}
}*/

void QgsMapToolAddCircularString::keyPressEvent( QKeyEvent *e )
{
@@ -34,8 +34,8 @@ class QgsMapToolAddCircularString: public QgsMapToolCapture

void activate() override;

private slots:
void setParentTool( QgsMapTool *newTool, QgsMapTool *oldTool );
/*private slots:
void setParentTool( QgsMapTool *newTool, QgsMapTool *oldTool );*/

protected:

0 comments on commit 5a9278b

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