diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2020-04-09 10:47:32 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2020-04-22 06:35:26 +0200 |
commit | 505863e7004c60fa2fc9aafc41516e2ee8a8efaa (patch) | |
tree | 8a4200b35c8add4c2b5873a71982c7487025bbee /src/qml/qml/qqmldatablob_p.h | |
parent | 5728f48834b9225a36d3e1dae44ced7579cde358 (diff) |
Add a hook that allows for ahead-of-time compiled functions
Use the unused field in the CachedUnit structure provided by qmlcachegen
to allow for providing function pointers for functions and bindings that
are compiled ahead of time.
Provided is the pointer into an array that is terminated with a {index:
0, functionPtr: nullptr} entry. The array index field in each array
entry allows for gaps.
Change-Id: I7457f5eea5f14e5f94431b9cc6da042cb03517a0
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmldatablob_p.h')
-rw-r--r-- | src/qml/qml/qqmldatablob_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmldatablob_p.h b/src/qml/qml/qqmldatablob_p.h index d8a1ee88a3..87e31a38f9 100644 --- a/src/qml/qml/qqmldatablob_p.h +++ b/src/qml/qml/qqmldatablob_p.h @@ -59,6 +59,7 @@ #include <QtNetwork/qnetworkreply.h> #endif +#include <QtQml/qqmlprivate.h> #include <QtQml/qqmlerror.h> #include <QtQml/qqmlabstracturlinterceptor.h> #include <QtQml/qqmlprivate.h> |