Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / propertyQJSValue.5.qml
1 import QtQuick 2.0
2 import Qt.test 1.0
3
4 MyQmlObject {
5     property bool test: false
6
7     qjsvalue: { 'color': 'red', 'width': 100 }
8     property int bound: qjsvalue.width
9
10     Component.onCompleted: {
11         if (bound != 100) return;
12
13         qjsvalue.width = 200   // bound should remain 100
14
15         if (bound != 100) return;
16
17         test = true;
18     }
19 }