aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/qpropertyBindingNoQPropertyCapture.qml
blob: d3a151efe3e0746b99ff5cee0eba0a87730f8c66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import QtQuick

Item {
    objectName: "redRectangle"
    id: redRectangle

    property bool b: false
    function toggle() { b = !b }
    width: b ? 600 : 500

    Item {
        id: blueRectangle
        objectName: "blueRectangle"
        // width: b ? (100 + redRectangle.width / 2) : 25
        width: b ? redRectangle.width : 25
    }

    property int blueRectangleWidth: blueRectangle.width
}