aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2011-07-28 16:10:46 +1000
committerQt by Nokia <qt-info@nokia.com>2011-07-28 10:04:08 +0200
commit43d940fd30ea4728664de393479438f54e888b32 (patch)
treecea5a67db0f2d9d468f3194dd3534e0d3d6c9e27 /src
parentda0441aa30e1e10c1e0ac9a8cd305c1b6e63c111 (diff)
Fix auto-repeat key navigation for GridView
Shouldn't set moveReason=SetIndex in key navigation. ListView didn't do this in its keyPress implementation. Added extra tests for GridView and ListView. Task-number: QTBUG-20408 Change-Id: Iaf0f331d3ba4f037c5bbc0a41418dd656b5a3695 Reviewed-on: http://codereview.qt.nokia.com/2318 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/items/qsggridview.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/declarative/items/qsggridview.cpp b/src/declarative/items/qsggridview.cpp
index 7b0e4f3e9a..26347c1c93 100644
--- a/src/declarative/items/qsggridview.cpp
+++ b/src/declarative/items/qsggridview.cpp
@@ -1161,7 +1161,6 @@ void QSGGridView::keyPressEvent(QKeyEvent *event)
return;
}
}
- d->moveReason = QSGGridViewPrivate::Other;
event->ignore();
QSGItemView::keyPressEvent(event);
}