Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove setParentTool method in QgsMapToolAddCircularString
  • Loading branch information
lbartoletti committed Oct 9, 2017
1 parent 00e12bc commit 5a9278b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/app/qgsmaptooladdcircularstring.cpp
Expand Up @@ -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 );
}
Expand All @@ -43,7 +43,7 @@ QgsMapToolAddCircularString::~QgsMapToolAddCircularString()
delete mTempRubberBand;
removeCenterPointRubberBand();
}

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

void QgsMapToolAddCircularString::keyPressEvent( QKeyEvent *e )
{
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsmaptooladdcircularstring.h
Expand Up @@ -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:

Expand Down

0 comments on commit 5a9278b

Please sign in to comment.