![]() |
Qt 6.x
The Qt SDK
|
#include <qproperty_p.h>
Public Types | |
enum class | Notify { Everything , OnlyChangeHandlers } |
Public Member Functions | |
void | unlink () |
void | unlink_fast () |
void | setBindingToNotify (QPropertyBindingPrivate *binding) |
void | setBindingToNotify_unsafe (QPropertyBindingPrivate *binding) |
void | setChangeHandler (QPropertyObserver::ChangeHandler changeHandler) |
void | notify (QUntypedPropertyData *propertyDataPtr) |
void | noSelfDependencies (QPropertyBindingPrivate *binding) |
void | evaluateBindings (PendingBindingObserverList &bindingObservers, QBindingStatus *status) |
void | observeProperty (QPropertyBindingDataPointer property) |
operator bool () const | |
QPropertyObserverPointer | nextObserver () const |
QPropertyBindingPrivate * | binding () const |
Public Attributes | |
QPropertyObserver * | ptr = nullptr |
Definition at line 121 of file qproperty_p.h.
|
strong |
Enumerator | |
---|---|
Everything | |
OnlyChangeHandlers |
Definition at line 146 of file qproperty_p.h.
|
inline |
Definition at line 161 of file qproperty_p.h.
References QPropertyObserverBase::ObserverNotifiesBinding, ptr(), and Q_ASSERT.
Referenced by evaluateBindings(), and noSelfDependencies().
void QPropertyObserverPointer::evaluateBindings | ( | PendingBindingObserverList & | bindingObservers, |
QBindingStatus * | status | ||
) |
Definition at line 802 of file qproperty.cpp.
References binding(), QPropertyObserverNodeProtector::next(), next, QPropertyObserverBase::ObserverNotifiesBinding, ptr(), QVarLengthArray< T, Prealloc >::push_back(), and Q_ASSERT.
Referenced by QPropertyDelayedNotifications::evaluateBindings().
|
inline |
Definition at line 159 of file qproperty_p.h.
References ptr().
void QPropertyObserverPointer::noSelfDependencies | ( | QPropertyBindingPrivate * | binding | ) |
Definition at line 785 of file qproperty.cpp.
References binding(), QPropertyObserverBase::ObserverNotifiesBinding, ptr(), and qCritical.
Referenced by QPropertyBindingPrivate::notifyNonRecursive().
|
inline |
Walks through the list of property observers, and calls any ChangeHandler found there. It doesn't do anything with bindings, which are only handled in QPropertyBindingPrivate::evaluateRecursive.
Definition at line 844 of file qproperty_p.h.
References QPropertyObserverNodeProtector::next(), next, QPropertyObserverBase::ObserverIsPlaceholder, QPropertyObserverBase::ObserverNotifiesBinding, QPropertyObserverBase::ObserverNotifiesChangeHandler, and ptr().
Referenced by QPropertyBindingPrivate::notifyNonRecursive().
void QPropertyObserverPointer::observeProperty | ( | QPropertyBindingDataPointer | property | ) |
Definition at line 823 of file qproperty.cpp.
References ptr().
|
inlineexplicit |
Definition at line 157 of file qproperty_p.h.
References ptr().
void QPropertyObserverPointer::setBindingToNotify | ( | QPropertyBindingPrivate * | binding | ) |
Definition at line 754 of file qproperty.cpp.
References QPropertyObserverBase::ObserverIsPlaceholder, QPropertyObserverBase::ObserverNotifiesBinding, ptr(), and Q_ASSERT.
void QPropertyObserverPointer::setBindingToNotify_unsafe | ( | QPropertyBindingPrivate * | binding | ) |
The same as setBindingToNotify, but assumes that the tag is already correct.
Definition at line 765 of file qproperty.cpp.
References QPropertyObserverBase::ObserverNotifiesBinding, ptr(), and Q_ASSERT.
void QPropertyObserverPointer::setChangeHandler | ( | QPropertyObserver::ChangeHandler | changeHandler | ) |
Definition at line 747 of file qproperty.cpp.
References QPropertyObserverBase::ObserverIsPlaceholder, QPropertyObserverBase::ObserverNotifiesChangeHandler, ptr(), and Q_ASSERT.
|
inline |
Unlinks
Definition at line 125 of file qproperty_p.h.
References ptr().
Referenced by QPropertyBindingPrivate::~QPropertyBindingPrivate().
|
inline |
Like unlink, but does not handle ObserverIsAlias. Must only be called in places where we know that we are not dealing with such an observer.
Definition at line 134 of file qproperty_p.h.
References ptr(), and Q_ASSERT.
QPropertyObserver* QPropertyObserverPointer::ptr = nullptr |
Definition at line 123 of file qproperty_p.h.
Referenced by QPropertyBindingPrivate::prependObserver(), QtPrivate::QPropertyBindingData::setBinding(), and QPropertyBindingPrivate::takeObservers().