diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2020-04-15 09:17:02 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2020-04-22 09:54:02 +0200 |
commit | ca1098ec1ef83589a78178eee3d28faa7d067017 (patch) | |
tree | bb541620259b76e39f9d2c3fa5cfaacb86d8bb5c /src/qml/qml/qqmlprivate.h | |
parent | 28a31148ca02dbb530fd92dfafbcf71c64af4b70 (diff) |
Add support for binding ahead-of-time compiled bindings to QProperties
When the ahead-of-time built binding returns the same type as the
QProperty, then we can connect them directly with a small shim and pass
through the context and scope objects.
Change-Id: I9cb49d1fa35490a4ccb06965397674d5534c067d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlprivate.h')
-rw-r--r-- | src/qml/qml/qqmlprivate.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlprivate.h b/src/qml/qml/qqmlprivate.h index cc1a14d24b..79969caa56 100644 --- a/src/qml/qml/qqmlprivate.h +++ b/src/qml/qml/qqmlprivate.h @@ -71,6 +71,7 @@ QT_BEGIN_NAMESPACE class QQmlPropertyValueInterceptor; +class QQmlContext; namespace QQmlPrivate { struct CachedQmlUnit; @@ -84,7 +85,6 @@ namespace CompiledData { struct Unit; struct CompilationUnit; } -struct CppStackFrame; } namespace QmlIR { struct Document; @@ -453,7 +453,8 @@ namespace QQmlPrivate struct AOTCompiledFunction { int index; - quint64 (*functionPtr)(QV4::CppStackFrame *, QV4::ExecutionEngine *); + QMetaType returnType; + void (*functionPtr)(QQmlContext *context, QObject *scopeObject, void *resultPtr); }; struct CachedQmlUnit { |