Skip to content

Commit 5a9278b

Browse files
committedOct 9, 2017
remove setParentTool method in QgsMapToolAddCircularString
1 parent 00e12bc commit 5a9278b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed
 

‎src/app/qgsmaptooladdcircularstring.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ QgsMapToolAddCircularString::QgsMapToolAddCircularString( QgsMapToolCapture *par
2929
, mParentTool( parentTool )
3030
, mShowCenterPointRubberBand( false )
3131
{
32-
if ( mCanvas )
33-
{
34-
connect( mCanvas, &QgsMapCanvas::mapToolSet, this, &QgsMapToolAddCircularString::setParentTool );
35-
}
32+
/* if ( mCanvas )
33+
{
34+
connect( mCanvas, &QgsMapCanvas::mapToolSet, this, &QgsMapToolAddCircularString::setParentTool );
35+
}*/
3636
connect( QgisApp::instance(), &QgisApp::newProject, this, &QgsMapToolAddCircularString::stopCapturing );
3737
connect( QgisApp::instance(), &QgisApp::projectRead, this, &QgsMapToolAddCircularString::stopCapturing );
3838
}
@@ -43,7 +43,7 @@ QgsMapToolAddCircularString::~QgsMapToolAddCircularString()
4343
delete mTempRubberBand;
4444
removeCenterPointRubberBand();
4545
}
46-
46+
/*
4747
void QgsMapToolAddCircularString::setParentTool( QgsMapTool *newTool, QgsMapTool *oldTool )
4848
{
4949
QgsMapToolCapture *tool = dynamic_cast<QgsMapToolCapture *>( oldTool );
@@ -56,7 +56,7 @@ void QgsMapToolAddCircularString::setParentTool( QgsMapTool *newTool, QgsMapTool
5656
{
5757
mParentTool = tool;
5858
}
59-
}
59+
}*/
6060

6161
void QgsMapToolAddCircularString::keyPressEvent( QKeyEvent *e )
6262
{

‎src/app/qgsmaptooladdcircularstring.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class QgsMapToolAddCircularString: public QgsMapToolCapture
3434

3535
void activate() override;
3636

37-
private slots:
38-
void setParentTool( QgsMapTool *newTool, QgsMapTool *oldTool );
37+
/*private slots:
38+
void setParentTool( QgsMapTool *newTool, QgsMapTool *oldTool );*/
3939

4040
protected:
4141

0 commit comments

Comments
 (0)
Please sign in to comment.