aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlexpression_p.h
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-06-25 16:16:58 +0200
committerLars Knoll <lars.knoll@qt.io>2021-08-09 14:53:44 +0000
commit3cf2df4a7e8a53a63068613311c4799e55c971b9 (patch)
treee06c00cc157af252a179d9af83ff78bbb832b1e0 /src/qml/qml/qqmlexpression_p.h
parent00b580427071acb9341bc49fe37e289201cbf02c (diff)
Skip superfluous property capture attempt
If a QQmlProperyBinding tries to capture a QProperty, there is nothing to do as the dependency tracking happens in C++ anyway. Thus we can avoid calling captureProperty. Pick-to: 6.2 Change-Id: I96b2876d4b2ba10b00af8342be9beae660a95ef3 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlexpression_p.h')
-rw-r--r--src/qml/qml/qqmlexpression_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlexpression_p.h b/src/qml/qml/qqmlexpression_p.h
index 3df839a6a2..26c0cddb9e 100644
--- a/src/qml/qml/qqmlexpression_p.h
+++ b/src/qml/qml/qqmlexpression_p.h
@@ -76,6 +76,7 @@ public:
QVariant value(bool *isUndefined = nullptr);
QV4::ReturnedValue v4value(bool *isUndefined = nullptr);
+ bool mustCaptureBindableProperty() const final {return true;}
static inline QQmlExpressionPrivate *get(QQmlExpression *expr);
static inline QQmlExpression *get(QQmlExpressionPrivate *expr);