diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-16 09:46:52 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-03-16 09:49:38 (GMT) |
commit | b912cac358a0a84f72f727767772caad22062a45 (patch) | |
tree | 81c84fd0db4dcac11dd86779b3d69871230c95e0 /src/gui/itemviews | |
parent | 1b16a610582990e3274f96bd27a05af45e20f4fe (diff) | |
download | Qt-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.cpp | 2 |
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: |