From f3281ca869420df83d618c255aa7d62e63a102d5 Mon Sep 17 00:00:00 2001 From: Andrei Golubev Date: Mon, 8 Feb 2021 15:42:59 +0100 Subject: Support runtime functions evaluation by index through QQmlEngine Add execution function that can evaluate runtime functions available in the compilation unit. Private API for now as it's unclear what would be a comprehensive solution to support all existing use cases Task-number: QTBUG-84368 Task-number: QTBUG-91039 Change-Id: Icf755b53484587d7983eaae4821c1aa0111d5c05 Reviewed-by: Ulf Hermann --- src/qml/jsruntime/qv4engine_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qml/jsruntime/qv4engine_p.h') diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index 6d02ffd54b..4529d09c2d 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -741,6 +741,9 @@ public: bool diskCacheEnabled() const; + ReturnedValue callInContext(Function *function, QObject *self, + QQmlRefPointer ctxtdata, void **args, int *types); + private: #if QT_CONFIG(qml_debug) QScopedPointer m_debugger; -- cgit v1.2.3