aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltyperegistrar
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-05-27 18:01:32 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-05-28 09:57:07 +0200
commit467be7ed0954618eee19d90f758f51c10802c9be (patch)
tree864e316ddebebe84932c854f458f3f297b81ddab /src/qmltyperegistrar
parent27c0034d6bb0df50d4479e42fc82fcd74b03d810 (diff)
qmltyperegistrar: Preserve isQProperty flag from metatypes
Task-number: QTBUG-76025 Change-Id: I952afdad6410c3f7ccb05b6c3de77020b30f78d3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io>
Diffstat (limited to 'src/qmltyperegistrar')
-rw-r--r--src/qmltyperegistrar/qmltypescreator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmltyperegistrar/qmltypescreator.cpp b/src/qmltyperegistrar/qmltypescreator.cpp
index 34e3e053a8..6b1901bfa7 100644
--- a/src/qmltyperegistrar/qmltypescreator.cpp
+++ b/src/qmltyperegistrar/qmltypescreator.cpp
@@ -162,6 +162,8 @@ void QmlTypesCreator::writeProperties(const QJsonArray &properties, QSet<QString
const auto it = obj.find(QLatin1String("revision"));
if (it != obj.end())
m_qml.writeScriptBinding(QLatin1String("revision"), QString::number(it.value().toInt()));
+ const bool isQProperty = obj[QLatin1String("isQProperty")].toBool();
+ m_qml.writeBooleanBinding(QLatin1String("isQProperty"), isQProperty);
writeType(obj, QLatin1String("type"), !obj.contains(QLatin1String("write")), true);
m_qml.writeEndObject();