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

Item {
    id: testOwnership
    property int intProperty: 10
    property var varProperty: intProperty
    property var varProperty2: false
    property var varBound: varProperty + 5
    property int intBound: varProperty + 5
    property var jsobject: new vehicle(4)

    function vehicle(wheels) {
        this.wheels = wheels;
    }
}