Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeitem / data / childrenProperty.qml
1 import QtQuick 1.0
2
3 Item {
4     id: root
5
6     property bool test1: root.children.length == 3
7     property bool test2: root.children[0] == item1
8     property bool test3: root.children[1] == item2
9     property bool test4: root.children[2] == item3
10     property bool test5: root.children[3] == null
11
12     children: [ Item { id: item1 }, Item { id: item2 }, Item { id: item3 } ]
13 }
14