aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickloader/data/initialPropertyValues.binding.qml
blob: e0df50a74a5956314194ad31f6e1bf14b48d4574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import QtQuick 2.0

Item {
    id: root

    property InitialPropertyValuesComponent testInstance
    testInstance: loader.item

    property int bindable:  1
    property int canaryValue: testInstance.canary
    property int behaviorCount: testInstance.behaviorCount

    Loader {
        id: loader
        objectName: "loader"
    }

    Component.onCompleted: {
        loader.setSource("InitialPropertyValuesComponent.qml", {"canary": (function() { return root.bindable })});
    }
}