aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltyperegistrar/qmltypescreator.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-02-25 11:20:07 +0100
committerUlf Hermann <ulf.hermann@qt.io>2020-02-25 11:58:52 +0100
commita4b25aa3c16ba9ce6e2821e591f7c35bf675d961 (patch)
treefbc044f20e0bccfd6c2dc27d589c3e1e157c1bc2 /src/qmltyperegistrar/qmltypescreator.cpp
parentbbe3f976c3426fea5dd305feff79288b9719fcd5 (diff)
qmltyperegistrar: Correctly collect attached types
Their revisions were missing from the qmltypes. Change-Id: Iec7a5ad1c56135c761f6a1fe66904cf25d039850 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmltyperegistrar/qmltypescreator.cpp')
-rw-r--r--src/qmltyperegistrar/qmltypescreator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qmltyperegistrar/qmltypescreator.cpp b/src/qmltyperegistrar/qmltypescreator.cpp
index 911120027e..292841541b 100644
--- a/src/qmltyperegistrar/qmltypescreator.cpp
+++ b/src/qmltyperegistrar/qmltypescreator.cpp
@@ -245,7 +245,8 @@ void QmlTypesCreator::writeComponents()
m_qml.writeStartObject(componentElement);
QmlTypesClassDescription collector;
- collector.collect(&component, m_ownTypes, m_foreignTypes, true);
+ collector.collect(&component, m_ownTypes, m_foreignTypes,
+ QmlTypesClassDescription::TopLevel);
writeClassProperties(collector);