Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qmlvisual / focusscope / test2.qml
1 import QtQuick 1.0
2
3 Rectangle {
4     color: "white"
5     width: 400
6     height: 50
7
8     //All five rectangles should be red
9     FocusScope {
10         focus: true
11         Rectangle { width: 40; height: 40; color: parent.activeFocus?"red":"blue" }
12
13         FocusScope {
14             x: 80
15             focus: true
16             Rectangle { width: 40; height: 40; color: parent.activeFocus?"red":"blue" }
17
18             FocusScope {
19                 x: 80
20                 focus: true
21                 Rectangle { width: 40; height: 40; color: parent.activeFocus?"red":"blue" }
22
23                 FocusScope {
24                     x: 80
25                     focus: true
26                     Rectangle { width: 40; height: 40; color: parent.activeFocus?"red":"blue" }
27
28                     FocusScope {
29                         x: 80
30                         focus: true
31                         Rectangle { width: 40; height: 40; color: parent.activeFocus?"red":"blue" }
32                     }
33                 }
34             }
35         }
36     }
37
38 }