Doc: Update docs to reflect method being renamed
The new method has been renamed from markDirty to notify. Fixes: QTBUG-111267 Pick-to: 6.5 6.5.0 6.4 Change-Id: Ib7926a315cfd11ca6930c785290089b7031d34ff Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
565e43fc70
commit
12c62dd243
@ -144,7 +144,7 @@ public:
|
|||||||
Q_D(MyClass);
|
Q_D(MyClass);
|
||||||
d->clients.push_back(c);
|
d->clients.push_back(c);
|
||||||
// notify that the value could have changed
|
// notify that the value could have changed
|
||||||
d->hasClientsData.markDirty();
|
d->hasClientsData.notify();
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
Q_DECLARE_PRIVATE(MyClass)
|
Q_DECLARE_PRIVATE(MyClass)
|
||||||
|
@ -1669,13 +1669,13 @@ QString QPropertyBindingError::description() const
|
|||||||
have changed. Whenever a bindable property used in the callback changes,
|
have changed. Whenever a bindable property used in the callback changes,
|
||||||
this happens automatically. If the result of the callback might change
|
this happens automatically. If the result of the callback might change
|
||||||
because of a change in a value which is not a bindable property,
|
because of a change in a value which is not a bindable property,
|
||||||
it is the developer's responsibility to call markDirty
|
it is the developer's responsibility to call \c notify
|
||||||
on the QObjectComputedProperty object.
|
on the QObjectComputedProperty object.
|
||||||
This will inform dependent properties about the potential change.
|
This will inform dependent properties about the potential change.
|
||||||
|
|
||||||
Note that calling markDirty might trigger change handlers in dependent
|
Note that calling \c notify might trigger change handlers in dependent
|
||||||
properties, which might in turn use the object the QObjectComputedProperty
|
properties, which might in turn use the object the QObjectComputedProperty
|
||||||
is a member of. So markDirty must not be called when in a transitional
|
is a member of. So \c notify must not be called when in a transitional
|
||||||
or invalid state.
|
or invalid state.
|
||||||
|
|
||||||
QObjectComputedProperty is not suitable for use with a computation that depends
|
QObjectComputedProperty is not suitable for use with a computation that depends
|
||||||
|
Loading…
Reference in New Issue
Block a user