aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickloader/data/initialPropertyValues.binding.qml
blob: 2ee60b0b50b7224930f95472a842c408dcad0e0f (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": Qt.binding(function() { return root.bindable })});
    }
}