diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-09-03 08:04:55 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-09-03 08:04:55 (GMT) |
commit | eda224dd49af6bf151fa231d795bc02a4db87e7d (patch) | |
tree | 2653759cbe11cd0e492f4adbbff6ed7ffc8bb477 /src/declarative/qml/qmlscriptparser.cpp | |
parent | 970e282c31011ac40cc94055ac01bea1994433c9 (diff) | |
download | Qt-eda224dd49af6bf151fa231d795bc02a4db87e7d.zip Qt-eda224dd49af6bf151fa231d795bc02a4db87e7d.tar.gz Qt-eda224dd49af6bf151fa231d795bc02a4db87e7d.tar.bz2 |
Modify QML grammar to accept "readonly" as a property modifier
Diffstat (limited to 'src/declarative/qml/qmlscriptparser.cpp')
-rw-r--r-- | src/declarative/qml/qmlscriptparser.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp index ca2d295..136b247 100644 --- a/src/declarative/qml/qmlscriptparser.cpp +++ b/src/declarative/qml/qmlscriptparser.cpp @@ -533,6 +533,15 @@ bool ProcessAST::visit(AST::UiPublicMember *node) return false; } + if (node->isReadonlyMember) { + QmlError error; + error.setDescription(QCoreApplication::translate("QmlParser","Readonly not yet supported")); + error.setLine(node->readonlyToken.startLine); + error.setColumn(node->readonlyToken.startColumn); + _parser->_errors << error; + return false; + + } Object::DynamicProperty property; property.isDefaultProperty = node->isDefaultMember; property.type = type; |