Support activeFocusOnTab in QQuickItem
authorLiang Qi <liang.qi@digia.com>
Fri, 22 Feb 2013 12:44:06 +0000 (13:44 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 12 Mar 2013 01:27:29 +0000 (02:27 +0100)
commit2f9d0346f00e37725f0f1bce1318501a25c5e438
tree24060fe2777ada4a054cb0c82e5bf89c28ffa70a
parentb4673e69a0522fca9c592f1dab1734738b1443a8
Support activeFocusOnTab in QQuickItem

Add activeFocusOnTab as property to QQuickItem. Setting the
property allows automatic keyboard navigation between all
elements that have it set.

This key event handler will only be called after the QML key
handlers, such as KeyNavigation and Keys, and the C++ key
event handlers, such as keyPressEvent function.

Algorithm is most done by Frederik Gladhorn, in cooperation with
Gabriel de Dietrich.

Done-with: Frederik Gladhorn <frederik.gladhorn@digia.com>
Done-with: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Change-Id: I8b58be9c20d113661fe85d27bdb1af84340d9de5
Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
examples/quick/keyinteraction/focus/Core/GridMenu.qml
examples/quick/keyinteraction/focus/Core/TabMenu.qml [new file with mode: 0644]
examples/quick/keyinteraction/focus/focus.qml
examples/quick/keyinteraction/keyinteraction.qrc
src/quick/items/qquickitem.cpp
src/quick/items/qquickitem.h
src/quick/items/qquickitem_p.h
tests/auto/quick/qquickitem2/data/activeFocusOnTab.qml [new file with mode: 0644]
tests/auto/quick/qquickitem2/data/activeFocusOnTab3.qml [new file with mode: 0644]
tests/auto/quick/qquickitem2/tst_qquickitem.cpp