aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlprivate.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-03-22 15:24:14 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-03-29 08:24:33 +0100
commita0499808be44ea15db53abf5091398ddd7c56de5 (patch)
tree361fd979386e5bf8ce640da547367929ef758e8f /src/qml/qml/qqmlprivate.h
parentda8776b98453ddbe08a08daf701a53fae9ede134 (diff)
Allow a bare lookup capture, without executing the lookup
This is useful when we know how to read the property directly. Change-Id: Ibc314a8e8bf9e51b3a15d934f6a1f17a53ea168a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlprivate.h')
-rw-r--r--src/qml/qml/qqmlprivate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlprivate.h b/src/qml/qml/qqmlprivate.h
index 8c47c71305..c47f0272f4 100644
--- a/src/qml/qml/qqmlprivate.h
+++ b/src/qml/qml/qqmlprivate.h
@@ -619,6 +619,10 @@ namespace QQmlPrivate
const QJSValueList &args) const;
QJSValue callGlobalLookup(uint index, const QJSValueList &args) const;
QJSValue loadGlobalLookup(uint index) const;
+
+ // Run QQmlPropertyCapture::captureProperty() without retrieving the value.
+ bool captureLookup(uint index, QObject *object) const;
+ bool captureQmlContextPropertyLookup(uint index) const;
};
struct AOTCompiledFunction {