diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2015-10-12 10:24:38 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2015-10-14 05:35:05 +0000 |
commit | 0789923f391f1e5bebe07b676a41c85a820b2533 (patch) | |
tree | bd514620afeea27760752dad3c818d49dc232316 /tests/auto/quick/qquickitem2/data | |
parent | 1551187f9c17bfa15686626d896ccbdd04d1f37a (diff) |
QQuickItem: detect loop in KeyNavigation chain
Task-number: QTBUG-47229
Change-Id: I22dbe5ee1fff4e9a8de4fa69b43e4d9a87677192
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick/qquickitem2/data')
-rw-r--r-- | tests/auto/quick/qquickitem2/data/keynavigationtest_loop.qml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickitem2/data/keynavigationtest_loop.qml b/tests/auto/quick/qquickitem2/data/keynavigationtest_loop.qml new file mode 100644 index 0000000000..dfac1549f9 --- /dev/null +++ b/tests/auto/quick/qquickitem2/data/keynavigationtest_loop.qml @@ -0,0 +1,37 @@ +import QtQuick 2.0 + +Column { + width: 50; height: 200 + Rectangle { + id: item1 + objectName: "item1" + focus: true + width: 50; height: 50 + color: focus ? "red" : "lightgray" + KeyNavigation.down: item2 + } + Rectangle { + id: item2 + objectName: "item2" + enabled: false + width: 50; height: 50 + color: focus ? "red" : "lightgray" + KeyNavigation.down: item3 + } + Rectangle { + id: item3 + objectName: "item3" + enabled: false + width: 50; height: 50 + color: focus ? "red" : "lightgray" + KeyNavigation.down: item4 + } + Rectangle { + id: item4 + objectName: "item4" + enabled: false + width: 50; height: 50 + color: focus ? "red" : "lightgray" + KeyNavigation.down: item3 + } +} |