diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2021-12-14 13:23:32 +0100 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2021-12-17 12:43:14 +0100 |
commit | 687609f2f3a98ade4b8e074615c3d1db1228fce0 (patch) | |
tree | 4d5ed39c9ea5087cb4868315e826ea9869c32dee /src/qml/qml/qqmlcomponent.h | |
parent | b9dba49d57338df0335912f9c6db627404af149d (diff) |
Move QObject and QQmlComponent into builtins
Previously we had two versions of QObject and QQmlComponent: a
hand-written version in bultins and one that is generated from QtQml.
We now move the QtQml version into builtins in order to allow for
representing the JavaScript extensions that are present in these types.
We also add some logic so that unused types will still react properly
despite the fact that those components are no longer in QtQml.
This is done by introducing the concept of static modules. These are
modules that have side effects beyond simply provinding components. This
applies both to when some components are in builtins instead of QtQml or
when the global object is modified in some way (i.e. by adding an image
provider). This is a tooling-only concept and does not affect how these
modules are handled at runtime.
Fixes: QTBUG-99025
Change-Id: Ifacaa836e4d2eef0521494f5a41363e053c90007
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlcomponent.h')
-rw-r--r-- | src/qml/qml/qqmlcomponent.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlcomponent.h b/src/qml/qml/qqmlcomponent.h index d60c2cdc9f..e70dae5de8 100644 --- a/src/qml/qml/qqmlcomponent.h +++ b/src/qml/qml/qqmlcomponent.h @@ -73,6 +73,7 @@ class Q_QML_EXPORT QQmlComponent : public QObject QML_NAMED_ELEMENT(Component) QML_ADDED_IN_VERSION(2, 0) QML_ATTACHED(QQmlComponentAttached) + Q_CLASSINFO("QML.OmitFromQmlTypes", "true") public: enum CompilationMode { PreferSynchronous, Asynchronous }; |