summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qabstractitemview.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-05-29 16:33:30 (GMT)
committerAlessandro Portale <aportale@trolltech.com>2009-05-29 16:33:30 (GMT)
commitafef05497be340509ffb604ab23d7d036bc363ea (patch)
tree90d976389d342f481a00ccb06930b7444da77ae4 /src/gui/itemviews/qabstractitemview.cpp
parentdc599015e702320cbb868855ba76f37d264dc074 (diff)
downloadQt-afef05497be340509ffb604ab23d7d036bc363ea.zip
Qt-afef05497be340509ffb604ab23d7d036bc363ea.tar.gz
Qt-afef05497be340509ffb604ab23d7d036bc363ea.tar.bz2
Implemented QKeyEventSoftKey::removeSoftkey and using it in
QAbstractItemView::keyPressEvent to remove the "Back" key.
Diffstat (limited to 'src/gui/itemviews/qabstractitemview.cpp')
-rw-r--r--src/gui/itemviews/qabstractitemview.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp
index 6e24c85..565bc28 100644
--- a/src/gui/itemviews/qabstractitemview.cpp
+++ b/src/gui/itemviews/qabstractitemview.cpp
@@ -2013,8 +2013,7 @@ void QAbstractItemView::keyPressEvent(QKeyEvent *event)
break;
case Qt::Key_Back:
if (QApplication::keypadNavigationEnabled() && hasEditFocus()) {
- if (QSoftKeyStack *stack = QSoftKeyStack::softKeyStackOfWidget(this))
- stack->pop();
+ QKeyEventSoftKey::removeSoftkey(this);
setEditFocus(false);
} else {
event->ignore();