aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/qtbug_21580.qml
blob: dc0066ba3ff76c04bc2a2eae4af03378bcc488e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import QtQuick 2.0

QtObject {
    property bool test: false

    property list<QtObject> objects: [
        QtObject {
            id: first
            property alias myAlias: other.myProperty
            onMyAliasChanged: if (myAlias == 20) test = true
        },
        QtObject {
            id: other
            property real myProperty
        }
    ]

    Component.onCompleted: {
        other.myProperty = 20;
    }
}