Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QPropertyObserverPointer Struct Reference

#include <qproperty_p.h>

+ Collaboration diagram for QPropertyObserverPointer:

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
 
QPropertyBindingPrivatebinding () const
 

Public Attributes

QPropertyObserverptr = nullptr
 

Detailed Description

Definition at line 121 of file qproperty_p.h.

Member Enumeration Documentation

◆ Notify

Enumerator
Everything 
OnlyChangeHandlers 

Definition at line 156 of file qproperty_p.h.

Member Function Documentation

◆ binding()

QPropertyBindingPrivate * QPropertyObserverPointer::binding ( ) const
inline

Definition at line 171 of file qproperty_p.h.

References QPropertyObserverBase::ObserverNotifiesBinding, ptr(), and Q_ASSERT.

Referenced by evaluateBindings(), and noSelfDependencies().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ evaluateBindings()

void QPropertyObserverPointer::evaluateBindings ( PendingBindingObserverList & bindingObservers,
QBindingStatus * status )

Definition at line 797 of file qproperty.cpp.

References binding(), next, QPropertyObserverBase::ObserverNotifiesBinding, ptr(), and Q_ASSERT.

Referenced by QPropertyDelayedNotifications::evaluateBindings().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nextObserver()

QPropertyObserverPointer QPropertyObserverPointer::nextObserver ( ) const
inline

Definition at line 169 of file qproperty_p.h.

References ptr().

+ Here is the call graph for this function:

◆ noSelfDependencies()

void QPropertyObserverPointer::noSelfDependencies ( QPropertyBindingPrivate * binding)

Definition at line 780 of file qproperty.cpp.

References binding(), QPropertyObserverBase::ObserverNotifiesBinding, ptr(), and qCritical.

Referenced by QPropertyBindingPrivate::notifyNonRecursive().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ notify()

void QPropertyObserverPointer::notify ( QUntypedPropertyData * propertyDataPtr)
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 884 of file qproperty_p.h.

References next, QPropertyObserverBase::ObserverIsPlaceholder, QPropertyObserverBase::ObserverNotifiesBinding, QPropertyObserverBase::ObserverNotifiesChangeHandler, ptr(), QT_WARNING_DISABLE_DEPRECATED, QT_WARNING_POP, and QT_WARNING_PUSH.

Referenced by QPropertyBindingPrivate::notifyNonRecursive().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ observeProperty()

void QPropertyObserverPointer::observeProperty ( QPropertyBindingDataPointer property)

Definition at line 818 of file qproperty.cpp.

References ptr().

+ Here is the call graph for this function:

◆ operator bool()

QPropertyObserverPointer::operator bool ( ) const
inlineexplicit

Definition at line 167 of file qproperty_p.h.

References ptr().

+ Here is the call graph for this function:

◆ setBindingToNotify()

void QPropertyObserverPointer::setBindingToNotify ( QPropertyBindingPrivate * binding)
inline

Definition at line 146 of file qproperty_p.h.

References QPropertyObserverBase::ObserverIsPlaceholder, QPropertyObserverBase::ObserverNotifiesBinding, ptr(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ setBindingToNotify_unsafe()

void QPropertyObserverPointer::setBindingToNotify_unsafe ( QPropertyBindingPrivate * binding)

The same as setBindingToNotify, but assumes that the tag is already correct.

Definition at line 760 of file qproperty.cpp.

References QPropertyObserverBase::ObserverNotifiesBinding, ptr(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ setChangeHandler()

void QPropertyObserverPointer::setChangeHandler ( QPropertyObserver::ChangeHandler changeHandler)

Definition at line 749 of file qproperty.cpp.

References QPropertyObserverBase::ObserverIsPlaceholder, QPropertyObserverBase::ObserverNotifiesChangeHandler, ptr(), and Q_ASSERT.

Referenced by QPropertyObserver::QPropertyObserver().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlink()

QPropertyObserverPointer::unlink ( )
inline

Unlinks

Definition at line 125 of file qproperty_p.h.

References ptr(), QT_WARNING_DISABLE_DEPRECATED, QT_WARNING_POP, and QT_WARNING_PUSH.

Referenced by QPropertyBindingPrivate::~QPropertyBindingPrivate(), QPropertyObserver::~QPropertyObserver(), and QPropertyObserver::operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlink_fast()

QPropertyObserverPointer::unlink_fast ( )
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 136 of file qproperty_p.h.

References ptr(), Q_ASSERT, QT_WARNING_DISABLE_DEPRECATED, QT_WARNING_POP, and QT_WARNING_PUSH.

+ Here is the call graph for this function:

Member Data Documentation

◆ ptr


The documentation for this struct was generated from the following files: