summaryrefslogtreecommitdiff
path: root/tests/auto/declarative/qdeclarativefocusscope/data/chain.qml
blob: 42b50cfa1fbcdc1ddb667d63eff8b6b2dac79436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import Qt 4.7

Rectangle {
    id: root
    width:300; height:400

    property bool focus1: root.activeFocus
    property bool focus2: item1.activeFocus
    property bool focus3: fs1.activeFocus
    property bool focus4: fs2.activeFocus
    property bool focus5: theItem.activeFocus

    Item {
        id: item1
        FocusScope {
            id: fs1
            focus: true
            FocusScope {
                id: fs2
                focus: true
                Item {
                    id: theItem
                    focus: true
                }
            }
        }
    }
}