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