Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / propertyQJSValue.14.qml
1
2 import QtQuick 2.0
3 import Qt.test 1.0
4
5 MyQmlObject {
6     property bool test: false
7     property int a: 100
8     property int b
9
10     function testFunction() {
11         return a * 3;
12     }
13
14     Component.onCompleted: {
15         b = Qt.binding(testFunction);
16         qjsvalue = Qt.binding(function() { return b + 12; });
17         if (qjsvalue != 312) return;
18         a = 120;
19         if (qjsvalue != 372) return;
20         test = true;
21     }
22 }