Skip to content
Permalink
Browse files

circular string maptools now react to ESC key

  • Loading branch information
SebDieBln committed Dec 21, 2015
1 parent 889422e commit e45603a96f313b081383f820962ae4b2e4fbb08b
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/app/qgsmaptooladdcircularstring.cpp
@@ -85,6 +85,18 @@ void QgsMapToolAddCircularString::keyPressEvent( QKeyEvent* e )
mShowCenterPointRubberBand = true;
createCenterPointRubberBand();
}

if ( e && e->key() == Qt::Key_Escape )
{
mPoints.clear();
delete mRubberBand;
mRubberBand = nullptr;
delete mTempRubberBand;
mTempRubberBand = nullptr;
removeCenterPointRubberBand();
if ( mParentTool )
mParentTool->keyPressEvent( e );
}
}

void QgsMapToolAddCircularString::keyReleaseEvent( QKeyEvent* e )

0 comments on commit e45603a

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