aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/BindingToScriptStringProperty.qml
blob: 45e3e8488356413bd01905b0e0dc151e1a54d3e9 (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
pragma Strict
import QtQuick

Item {
    id: root
    height: 300
    property bool c: false

    Rectangle {
        id: top
        objectName: "top"
        anchors.top: root.top
        anchors.bottom: bottom.top
    }
    Rectangle {
        id: bottom
        objectName: "bottom"
        anchors.top: root.verticalCenter
        anchors.bottom: root.bottom
    }
    states: State {
        when: root.c
        AnchorChanges {
            target: bottom
            anchors.top: root.bottom
        }
    }
}