Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QBindingStorage Class Reference

#include <qbindingstorage.h>

+ Collaboration diagram for QBindingStorage:

Public Member Functions

 QBindingStorage ()
 
 ~QBindingStorage ()
 
bool isEmpty ()
 
bool isValid () const noexcept
 
const QBindingStatusstatus (QtPrivate::QBindingStatusAccessToken) const
 
void registerDependency (const QUntypedPropertyData *data) const
 
QtPrivate::QPropertyBindingDatabindingData (const QUntypedPropertyData *data) const
 
QtPrivate::QPropertyBindingDatabindingData (QUntypedPropertyData *data, bool create)
 

Friends

template<typename Class , typename T , auto Offset, auto Setter, auto Signal, auto Getter>
class QObjectCompatProperty
 
class QObjectPrivate
 
class QtPrivate::QPropertyBindingData
 

Detailed Description

QBindingStorage acts as a storage for property binding related data in QObject. Any property in a QObject can be made bindable by using the Q_OBJECT_BINDABLE_PROPERTY macro to declare it. A setter and a getter for the property and a declaration using Q_PROPERTY have to be made as usual. Binding related data will automatically be stored within the QBindingStorage inside the QObject.

Definition at line 39 of file qbindingstorage.h.

Constructor & Destructor Documentation

◆ QBindingStorage()

QBindingStorage::QBindingStorage ( )

Definition at line 2289 of file qproperty.cpp.

References Q_ASSERT, and QT_PREPEND_NAMESPACE().

+ Here is the call graph for this function:

◆ ~QBindingStorage()

QBindingStorage::~QBindingStorage ( )

Definition at line 2295 of file qproperty.cpp.

References QBindingStoragePrivate::destroy().

+ Here is the call graph for this function:

Member Function Documentation

◆ bindingData() [1/2]

◆ bindingData() [2/2]

QtPrivate::QPropertyBindingData * QBindingStorage::bindingData ( QUntypedPropertyData data,
bool  create 
)
inline

Definition at line 74 of file qbindingstorage.h.

References create(), and d.

+ Here is the call graph for this function:

◆ isEmpty()

bool QBindingStorage::isEmpty ( )
inline

Definition at line 52 of file qbindingstorage.h.

References d.

◆ isValid()

bool QBindingStorage::isValid ( ) const
inlinenoexcept

Definition at line 53 of file qbindingstorage.h.

References bindingStatus.

◆ registerDependency()

void QBindingStorage::registerDependency ( const QUntypedPropertyData data) const
inline

Definition at line 57 of file qbindingstorage.h.

References bindingStatus, and QBindingStatus::currentlyEvaluatingBinding.

Referenced by QObjectBindableProperty< Class, T, Offset, Signal >::value(), and QObjectComputedProperty< Class, T, Offset, Getter >::value().

+ Here is the caller graph for this function:

◆ status()

const QBindingStatus * QBindingStorage::status ( QtPrivate::QBindingStatusAccessToken  ) const

Definition at line 2343 of file qproperty.cpp.

Friends And Related Symbol Documentation

◆ QObjectCompatProperty

template<typename Class , typename T , auto Offset, auto Setter, auto Signal, auto Getter>
friend class QObjectCompatProperty
friend

Definition at line 45 of file qbindingstorage.h.

◆ QObjectPrivate

friend class QObjectPrivate
friend

Definition at line 46 of file qbindingstorage.h.

◆ QtPrivate::QPropertyBindingData

friend class QtPrivate::QPropertyBindingData
friend

Definition at line 47 of file qbindingstorage.h.


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