aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-10-26 14:56:56 +0100
committerUlf Hermann <ulf.hermann@qt.io>2020-10-26 19:49:39 +0100
commit880b937b6c67df35eea46cec9f4580dc79e21a99 (patch)
tree75abdee8a6fcb77a37866e0101ed622825cb16a8 /src
parentd3423e2d20272809b9ba1263762819543446cbe9 (diff)
QmlCompiler: Make sure that properties are writable by default
Amends commit 7feab1fb95317b924fe39c49dd9907ca3df61a40. Change-Id: I32e22b51501d9c98af74ac00506619cfe33f6b7c Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qmlcompiler/qqmljstypedescriptionreader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljstypedescriptionreader.cpp b/src/qmlcompiler/qqmljstypedescriptionreader.cpp
index 17e3d2e707..215a82b4bc 100644
--- a/src/qmlcompiler/qqmljstypedescriptionreader.cpp
+++ b/src/qmlcompiler/qqmljstypedescriptionreader.cpp
@@ -314,6 +314,7 @@ void QQmlJSTypeDescriptionReader::readSignalOrMethod(UiObjectDefinition *ast, bo
void QQmlJSTypeDescriptionReader::readProperty(UiObjectDefinition *ast, const QQmlJSScope::Ptr &scope)
{
QQmlJSMetaProperty property;
+ property.setIsWritable(true); // default is writable
for (UiObjectMemberList *it = ast->initializer->members; it; it = it->next) {
UiObjectMember *member = it->member;