![]() |
Qt 6.x
The Qt SDK
|
#include <qbindingstorage.h>
Public Member Functions | |
QBindingStorage () | |
~QBindingStorage () | |
bool | isEmpty () |
bool | isValid () const noexcept |
const QBindingStatus * | status (QtPrivate::QBindingStatusAccessToken) const |
void | registerDependency (const QUntypedPropertyData *data) const |
QtPrivate::QPropertyBindingData * | bindingData (const QUntypedPropertyData *data) const |
QtPrivate::QPropertyBindingData * | bindingData (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 |
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.
QBindingStorage::QBindingStorage | ( | ) |
Definition at line 2289 of file qproperty.cpp.
References Q_ASSERT, and QT_PREPEND_NAMESPACE().
QBindingStorage::~QBindingStorage | ( | ) |
Definition at line 2295 of file qproperty.cpp.
References QBindingStoragePrivate::destroy().
|
inline |
Definition at line 63 of file qbindingstorage.h.
References d.
Referenced by QObjectBindableProperty< Class, T, Offset, Signal >::binding(), QObjectCompatProperty< Class, T, Offset, Setter, Signal, Getter >::binding(), QObjectBindableProperty< Class, T, Offset, Signal >::hasBinding(), QObjectCompatProperty< Class, T, Offset, Setter, Signal, Getter >::hasBinding(), QObjectBindableProperty< Class, T, Offset, Signal >::notify(), QObjectBindableProperty< Class, T, Offset, Signal >::setBinding(), QObjectCompatProperty< Class, T, Offset, Setter, Signal, Getter >::setBinding(), QObjectBindableProperty< Class, T, Offset, Signal >::setValue(), and QObjectBindableProperty< Class, T, Offset, Signal >::setValue().
|
inline |
|
inline |
Definition at line 52 of file qbindingstorage.h.
References d.
|
inlinenoexcept |
Definition at line 53 of file qbindingstorage.h.
References bindingStatus.
|
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().
const QBindingStatus * QBindingStorage::status | ( | QtPrivate::QBindingStatusAccessToken | ) | const |
Definition at line 2343 of file qproperty.cpp.
|
friend |
Definition at line 45 of file qbindingstorage.h.
|
friend |
Definition at line 46 of file qbindingstorage.h.
|
friend |
Definition at line 47 of file qbindingstorage.h.