aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlbinding_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/qqmlbinding_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/qqmlbinding_p.h')
-rw-r--r--src/qml/qml/qqmlbinding_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlbinding_p.h b/src/qml/qml/qqmlbinding_p.h
index 4e824fff03..6ba492f0e4 100644
--- a/src/qml/qml/qqmlbinding_p.h
+++ b/src/qml/qml/qqmlbinding_p.h
@@ -97,6 +97,8 @@ public:
~QQmlBinding() override;
+ bool mustCaptureBindableProperty() const final {return true;}
+
void setTarget(const QQmlProperty &);
bool setTarget(QObject *, const QQmlPropertyData &, const QQmlPropertyData *valueType);
bool setTarget(QObject *, int coreIndex, bool coreIsAlias, int valueTypeIndex);