aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmlcompiler')
-rw-r--r--src/qmlcompiler/qqmljstypedescriptionreader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljstypedescriptionreader.cpp b/src/qmlcompiler/qqmljstypedescriptionreader.cpp
index b3ef6092a0..3457b6ec15 100644
--- a/src/qmlcompiler/qqmljstypedescriptionreader.cpp
+++ b/src/qmlcompiler/qqmljstypedescriptionreader.cpp
@@ -347,6 +347,9 @@ void QQmlJSTypeDescriptionReader::readProperty(UiObjectDefinition *ast, const QQ
property.setRevision(readIntBinding(script));
} else if (id == QLatin1String("bindable")) {
property.setBindable(readStringBinding(script));
+ } else if (id == QLatin1String("read") || id == QLatin1String("write")) {
+ // QQmlJSMetaProperty currently does not make use of the getter and setter name
+ continue;
} else {
addWarning(script->firstSourceLocation(),
tr("Expected only type, name, revision, isPointer, isReadonly, bindable, and"