diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/focusscope/test2.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/focusscope/test2.qml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/focusscope/test2.qml b/tests/auto/declarative/qmlvisual/focusscope/test2.qml new file mode 100644 index 00000000..072eddbf --- /dev/null +++ b/tests/auto/declarative/qmlvisual/focusscope/test2.qml @@ -0,0 +1,38 @@ +import QtQuick 1.0 + +Rectangle { + color: "white" + width: 400 + height: 50 + + //All five rectangles should be red + FocusScope { + focus: true + Rectangle { width: 40; height: 40; color: parent.activeFocus?"red":"blue" } + + FocusScope { + x: 80 + focus: true + Rectangle { width: 40; height: 40; color: parent.activeFocus?"red":"blue" } + + FocusScope { + x: 80 + focus: true + Rectangle { width: 40; height: 40; color: parent.activeFocus?"red":"blue" } + + FocusScope { + x: 80 + focus: true + Rectangle { width: 40; height: 40; color: parent.activeFocus?"red":"blue" } + + FocusScope { + x: 80 + focus: true + Rectangle { width: 40; height: 40; color: parent.activeFocus?"red":"blue" } + } + } + } + } + } + +} |