summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-03-16 09:46:52 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-03-16 09:49:38 (GMT)
commitb912cac358a0a84f72f727767772caad22062a45 (patch)
tree81c84fd0db4dcac11dd86779b3d69871230c95e0 /src/gui/itemviews
parent1b16a610582990e3274f96bd27a05af45e20f4fe (diff)
downloadQt-b912cac358a0a84f72f727767772caad22062a45.zip
Qt-b912cac358a0a84f72f727767772caad22062a45.tar.gz
Qt-b912cac358a0a84f72f727767772caad22062a45.tar.bz2
Make sure the delete and backspace keys are ignored when keyb-searching
Task-number: QTBUG-8270 Reviewed-by: gabi
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r--src/gui/itemviews/qabstractitemview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp
index 443e669..61defdc 100644
--- a/src/gui/itemviews/qabstractitemview.cpp
+++ b/src/gui/itemviews/qabstractitemview.cpp
@@ -2296,6 +2296,8 @@ void QAbstractItemView::keyPressEvent(QKeyEvent *event)
case Qt::Key_Escape:
case Qt::Key_Shift:
case Qt::Key_Control:
+ case Qt::Key_Delete:
+ case Qt::Key_BackSpace:
event->ignore();
break;
case Qt::Key_Space: