Rename Qt Quick-specific classes to QQuick*
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qquickloader / data / initialPropertyValues.4.qml
1 import QtQuick 2.0
2
3 Item {
4     id: root
5     property int initialValue: 0
6     property int behaviorCount: 0
7
8     Loader {
9         id: loader
10         objectName: "loader"
11         active: false
12         onLoaded: {
13             root.initialValue = loader.item.canary;         // should be four
14             root.behaviorCount = loader.item.behaviorCount; // should be zero
15         }
16     }
17
18     Component.onCompleted: {
19         loader.setSource("InitialPropertyValuesComponent.qml", {"canary": 4});
20         loader.active = true
21     }
22 }