qmlweb / qmlweb-parser

A QML parser in JavaScript
Other
27 stars 11 forks source link

Readonly properties support #14

Open ChALkeR opened 8 years ago

ChALkeR commented 8 years ago

See http://doc.qt.io/qt-5/qtqml-syntax-objectattributes.html#read-only-properties

The testcase is failing atm.

ChALkeR commented 8 years ago

Not sure if that should be a separate element or a modifier of qmlpropdef.

A separate element will require another patch in QmlWeb to be supported. A modifier perhaps could work without patches on QmlWeb side (without actually enforcing the «readonly» rule), but I am not sure how a modifier should look like here.

machinekoder commented 7 years ago

The readonly property is important to stay compatible with Qt QML. I would implement it using a modifier for qmlpropdef. I don't think a separate element is necessary.