From 10bf3ae90cadbec44c6007190bf16e3c9c7652d8 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Thu, 20 Aug 2020 11:01:18 +0200 Subject: QProperty add markdirty This adds functionality for marking properties (QProperty and related classes) manually as dirty. This facilliates the integration of bindable properties with non-binable properties and makes it possible for bindable properties to change due to external events. Fixes: QTBUG-89167 Change-Id: I256cf154d914149dacb6cadaba92b13c88c9d027 Reviewed-by: Ulf Hermann --- src/corelib/kernel/qpropertyprivate.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/corelib/kernel/qpropertyprivate.h') diff --git a/src/corelib/kernel/qpropertyprivate.h b/src/corelib/kernel/qpropertyprivate.h index f4b81ea40b..c53e15c2ec 100644 --- a/src/corelib/kernel/qpropertyprivate.h +++ b/src/corelib/kernel/qpropertyprivate.h @@ -248,6 +248,8 @@ public: } void evaluateIfDirty(const QUntypedPropertyData *property) const; + void markDirty(); + void removeBinding() { if (hasBinding()) -- cgit v1.2.3