5850791704df8e1d0f4001f7db2c7b8b61abf64a
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativefocusscope / data / signalEmission.qml
1 import QtQuick 1.0
2
3 Rectangle {
4     width: 200
5     height: 200
6
7     FocusScope {
8         focus: true
9         Rectangle {
10             objectName: "item1"
11             color: "blue"
12             onFocusChanged: focus ? color = "red" : color = "blue"
13         }
14         Rectangle {
15             objectName: "item2"
16             color: "blue"
17             onFocusChanged: focus ? color = "red" : color = "blue"
18         }
19     }
20
21     FocusScope {
22         Rectangle {
23             objectName: "item3"
24             color: "blue"
25             onFocusChanged: focus ? color = "red" : color = "blue"
26         }
27         Rectangle {
28             objectName: "item4"
29             color: "blue"
30             onFocusChanged: focus ? color = "red" : color = "blue"
31         }
32     }
33 }