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

MyQmlObject {
    id: root
    property bool test: false

    qjsvalue: 4
    property int bound: qjsvalue + 5

    Component.onCompleted: {
        if (bound != 9) return;

        qjsvalue = qjsvalue + 1;

        if (bound != 10) return;

        test = true;
    }
}