From c86c41293b7cfda60e673e556ce6c8d830dbe443 Mon Sep 17 00:00:00 2001 From: ahuarte47 Date: Mon, 9 Dec 2013 23:09:58 +0100 Subject: [PATCH] #9094: Use backspace in other similar code --- src/app/nodetool/qgsmaptoolnodetool.h | 2 +- src/app/qgsmaptoolannotation.cpp | 2 +- src/plugins/grass/qgsgrassmapcalc.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/nodetool/qgsmaptoolnodetool.h b/src/app/nodetool/qgsmaptoolnodetool.h index 75b5d0cb5849..1587f022ba73 100644 --- a/src/app/nodetool/qgsmaptoolnodetool.h +++ b/src/app/nodetool/qgsmaptoolnodetool.h @@ -98,7 +98,7 @@ class QgsMapToolNodeTool: public QgsMapToolVertexEdit /** * Returns the index of first selected vertex, -1 when all unselected */ - int firstSelectedVertex( ); + int firstSelectedVertex(); /** * Select the specified vertex bounded to current index range, returns the valid selected index diff --git a/src/app/qgsmaptoolannotation.cpp b/src/app/qgsmaptoolannotation.cpp index 3bace1fc8abd..600b3689a61e 100644 --- a/src/app/qgsmaptoolannotation.cpp +++ b/src/app/qgsmaptoolannotation.cpp @@ -133,7 +133,7 @@ void QgsMapToolAnnotation::keyPressEvent( QKeyEvent* e ) QgsAnnotationItem* sItem = selectedItem(); if ( sItem ) { - if ( e->key() == Qt::Key_Delete ) + if ( e->key() == Qt::Key_Backspace || e->key() == Qt::Key_Delete ) { if ( mCanvas && mCanvas->scene() ) { diff --git a/src/plugins/grass/qgsgrassmapcalc.cpp b/src/plugins/grass/qgsgrassmapcalc.cpp index b2386ece5f70..8bfa1b74aa3e 100644 --- a/src/plugins/grass/qgsgrassmapcalc.cpp +++ b/src/plugins/grass/qgsgrassmapcalc.cpp @@ -829,7 +829,7 @@ void QgsGrassMapcalc::deleteItem() void QgsGrassMapcalc::keyPressEvent( QKeyEvent * e ) { - if ( e->key() == Qt::Key_Delete ) + if ( e->key() == Qt::Key_Backspace || e->key() == Qt::Key_Delete ) { deleteItem();