diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-08-20 11:01:18 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-12-18 13:10:46 +0100 |
commit | 10bf3ae90cadbec44c6007190bf16e3c9c7652d8 (patch) | |
tree | c23e1aa6ccde0d1878759f7ad955e688b6ae77b9 /src/corelib/kernel/qpropertyprivate.h | |
parent | abd2cbc12a28f2e962827ac9608d9e0bef6f0489 (diff) |
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 <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/kernel/qpropertyprivate.h')
-rw-r--r-- | src/corelib/kernel/qpropertyprivate.h | 2 |
1 files changed, 2 insertions, 0 deletions
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()) |