Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / nonscriptable.qml
1 import Qt.test 1.0
2 import QtQuick 2.0
3
4 MyQmlObject {
5     id: root
6
7     property bool readOk: false;
8     property bool writeOk: false
9
10     Component.onCompleted: {
11         readOk = (root.nonscriptable == undefined);
12
13         try {
14             root.nonscriptable = 10
15         } catch (e) {
16             writeOk = true;
17         }
18     }
19 }