diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2020-02-10 15:12:32 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2020-03-19 13:09:03 +0100 |
commit | 58992993a381fedd2f0e36edb73a63cfb9b3bcea (patch) | |
tree | 1a9f1558db2f9643a728a40b175b278ad8286a94 /src/corelib/kernel/qproperty.h | |
parent | 1fcce5105388b41c24c60324f678afb2d05e687f (diff) |
Add support for explicitly marking a property as dirty
When a binding is backed by old-style property captures, then having
this API is needed for Qml.
Change-Id: Icf51efe057eaf845969ed2cda52d082dedde677e
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/kernel/qproperty.h')
-rw-r--r-- | src/corelib/kernel/qproperty.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/kernel/qproperty.h b/src/corelib/kernel/qproperty.h index 7fd8c2e17e..5e1d8ec2f6 100644 --- a/src/corelib/kernel/qproperty.h +++ b/src/corelib/kernel/qproperty.h @@ -137,6 +137,8 @@ public: QMetaType valueMetaType() const; + void setDirty(bool dirty = true); + private: explicit QUntypedPropertyBinding(const QPropertyBindingPrivatePtr &priv); friend class QtPrivate::QPropertyBase; |