diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-04-07 11:50:39 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-04-28 11:46:03 +0200 |
commit | c2de5643cd4f1b8d8b10e2bb62fdf95f12fdd9e3 (patch) | |
tree | 55cfa6610c91315d5ae6cbbf2c961fb2fbfcabd8 /src/qmltyperegistrar/qmltypescreator.cpp | |
parent | 1029b2b9f3d0ff88c0900fbfec2fac873aa6bcd4 (diff) |
Register value types declaratively
For now this has the effect of adding them to the .qmltypes files. In
the future, the registration shall actually add additional value types
you can declare as properties in QML.
Change-Id: Ifee5a8ec054f35cc7bd07eb992a136730be68da7
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmltyperegistrar/qmltypescreator.cpp')
-rw-r--r-- | src/qmltyperegistrar/qmltypescreator.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/qmltyperegistrar/qmltypescreator.cpp b/src/qmltyperegistrar/qmltypescreator.cpp index 1bccbc36d8..a9885b03fa 100644 --- a/src/qmltyperegistrar/qmltypescreator.cpp +++ b/src/qmltyperegistrar/qmltypescreator.cpp @@ -48,10 +48,7 @@ void QmlTypesCreator::writeClassProperties(const QmlTypesClassDescription &colle { if (!collector.file.isEmpty()) m_qml.writeScriptBinding(QLatin1String("file"), enquote(collector.file)); - m_qml.writeScriptBinding( - QLatin1String("name"), - enquote(collector.resolvedClass->value( - QLatin1String("qualifiedClassName")).toString())); + m_qml.writeScriptBinding(QLatin1String("name"), enquote(collector.className)); if (!collector.defaultProp.isEmpty()) m_qml.writeScriptBinding(QLatin1String("defaultProperty"), enquote(collector.defaultProp)); |