qmlweb-parser icon indicating copy to clipboard operation
qmlweb-parser copied to clipboard

Readonly properties support

Open ChALkeR opened this issue 9 years ago • 2 comments

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

The testcase is failing atm.

ChALkeR avatar Jun 07 '16 00:06 ChALkeR

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.

ChALkeR avatar Jun 08 '16 08:06 ChALkeR

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.

machinekoder avatar Nov 28 '16 18:11 machinekoder