diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-05-25 12:51:39 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-05-27 11:54:30 +0200 |
commit | 524d78160726b25ed424a2c7a6d5e423b7ea4b93 (patch) | |
tree | c5ca373ef8231454dab4a73ffe2d479a73f103aa /src/corelib/kernel/qproperty_p.h | |
parent | 36bd34dbdcaa0fcfd47d1edb3494a4babb709ca3 (diff) |
QProperty: Support multiple observers
Previously, only the first observer would get notified. Also, make sure
that the notifiers are always retained when switching between bindings
and values.
Change-Id: I9c25c0f2e288dac3a335b68e618f7ddeb44be25a
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qproperty_p.h')
-rw-r--r-- | src/corelib/kernel/qproperty_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/kernel/qproperty_p.h b/src/corelib/kernel/qproperty_p.h index 13cdb311c1..6638785ccf 100644 --- a/src/corelib/kernel/qproperty_p.h +++ b/src/corelib/kernel/qproperty_p.h @@ -65,6 +65,7 @@ struct Q_AUTOTEST_EXPORT QPropertyBasePointer QPropertyBindingPrivate *bindingPtr() const; + void setObservers(QPropertyObserver *observer); void addObserver(QPropertyObserver *observer); void setFirstObserver(QPropertyObserver *observer); QPropertyObserverPointer firstObserver() const; |