remove setParentTool method in QgsMapToolAddCircularString

This commit is contained in:
lbartoletti 2017-10-09 23:43:51 +02:00
parent 00e12bc303
commit 5a9278b51e
2 changed files with 8 additions and 8 deletions

View File

@ -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 )
{

View File

@ -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: