summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/nonscriptable.qml
blob: e86cc961afcd09cd2201afbd803d837f85870e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import Qt.test 1.0
import QtQuick 1.0

MyQmlObject {
    id: root

    property bool readOk: false;
    property bool writeOk: false

    Component.onCompleted: {
        readOk = (root.nonscriptable == undefined);

        try {
            root.nonscriptable = 10
        } catch (e) {
            writeOk = true;
        }
    }
}