diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2018-08-02 08:40:04 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-08-15 12:09:59 +0000 |
commit | a18ab2a3822e0d38e8ff19ccdf44d9fc802b5d02 (patch) | |
tree | 35f52b4c1c280cd37758f5a14c874d2a24d133c0 /tests/auto/quick/qquickitem2/data | |
parent | 9e73c8f3ac82272107b641ed7ec9223fcd1b84b1 (diff) |
Protect tab focus chain from infinite loops when item is invisible
Make sure to start the search for a potential focus item on an item that
will be visited again later, otherwise we'll loop for ever.
Fixes: QTBUG-68271
Change-Id: Icb330e4e726132511810027a33b9fb346c7fa131
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickitem2/data')
-rw-r--r-- | tests/auto/quick/qquickitem2/data/activeFocusOnTab_infiniteLoop.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickitem2/data/activeFocusOnTab_infiniteLoop.qml b/tests/auto/quick/qquickitem2/data/activeFocusOnTab_infiniteLoop.qml new file mode 100644 index 0000000000..889e480f3b --- /dev/null +++ b/tests/auto/quick/qquickitem2/data/activeFocusOnTab_infiniteLoop.qml @@ -0,0 +1,13 @@ +import QtQuick 2.6 + +Item { + visible: true + Item { + visible: false + Item { + objectName: "hiddenChild" + activeFocusOnTab: true + focus: true + } + } +} |