diff options
author | Andrei Golubev <andrei.golubev@qt.io> | 2021-06-21 11:41:57 +0200 |
---|---|---|
committer | Andrei Golubev <andrei.golubev@qt.io> | 2021-06-21 16:51:13 +0200 |
commit | 562ba78426d32c43bdaadaf782a31e9e0121425d (patch) | |
tree | 6868e75e126e7e6fc4035b044948c45afa8d6738 /src/qml/qml/qqmlengine_p.h | |
parent | 46f56408244d801bb7ad4c8874546b0feff63644 (diff) |
Allow QQmlEngine to load the compilation unit from url
This seems fairly essential one way or another since e.g. QQmlContext
uses the compilation unit to set up some of the internal data members.
Add a new method to the private API of QQmlEngine. This API could be
used by the object creation compiler to set up different parts of the
object (again, QQmlContext)
Change-Id: I25894ab74606793ade391bafd8eb5b1cbfbe0952
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlengine_p.h')
-rw-r--r-- | src/qml/qml/qqmlengine_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlengine_p.h b/src/qml/qml/qqmlengine_p.h index 1e11808ac7..c961c2603a 100644 --- a/src/qml/qml/qqmlengine_p.h +++ b/src/qml/qml/qqmlengine_p.h @@ -297,6 +297,7 @@ public: void executeRuntimeFunction(const QUrl &url, qsizetype functionIndex, QObject *thisObject, int argc = 0, void **args = nullptr, QMetaType *types = nullptr); + QV4::ExecutableCompilationUnit *compilationUnitFromUrl(const QUrl &url); private: class SingletonInstances : private QHash<QQmlType, QJSValue> |