diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-02-25 11:20:07 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-02-25 11:58:52 +0100 |
commit | a4b25aa3c16ba9ce6e2821e591f7c35bf675d961 (patch) | |
tree | fbc044f20e0bccfd6c2dc27d589c3e1e157c1bc2 /src/qmltyperegistrar/qmltypesclassdescription.h | |
parent | bbe3f976c3426fea5dd305feff79288b9719fcd5 (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/qmltypesclassdescription.h')
-rw-r--r-- | src/qmltyperegistrar/qmltypesclassdescription.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/qmltyperegistrar/qmltypesclassdescription.h b/src/qmltyperegistrar/qmltypesclassdescription.h index 8f3a6ea124..d468612beb 100644 --- a/src/qmltyperegistrar/qmltypesclassdescription.h +++ b/src/qmltyperegistrar/qmltypesclassdescription.h @@ -49,8 +49,16 @@ struct QmlTypesClassDescription bool isRootClass = false; bool isBuiltin = false; + enum CollectMode { + TopLevel, + SuperClass, + AttachedType + }; + void collect(const QJsonObject *classDef, const QVector<QJsonObject> &types, - const QVector<QJsonObject> &foreign, bool topLevel); + const QVector<QJsonObject> &foreign, CollectMode mode); + void collectAttached(const QString &attached, const QVector<QJsonObject> &types, + const QVector<QJsonObject> &foreign); static const QJsonObject *findType(const QVector<QJsonObject> &types, const QString &name); }; |