![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtQml More...
#include <qqmlabstractbinding_p.h>
Classes | |
| struct | RefCount |
Public Types | |
| enum | Kind { ValueTypeProxy , QmlBinding , PropertyToPropertyBinding } |
| enum | State { Disabled = 0 , AddedToObject = 1 , BindingEnabled = 2 , UpdatingBinding = 3 } |
| enum | TargetTag { NoTargetTag = 0x0 , CanUseAccessor = 0x1 , IsSticky = 0x2 } |
| typedef QExplicitlySharedDataPointer< QQmlAbstractBinding > | Ptr |
Public Member Functions | |
| virtual | ~QQmlAbstractBinding () |
| virtual QString | expression () const |
| virtual Kind | kind () const =0 |
| QQmlPropertyIndex | targetPropertyIndex () const |
| QObject * | targetObject () const |
| void | setTarget (const QQmlProperty &) |
| bool | setTarget (QObject *, const QQmlPropertyData &, const QQmlPropertyData *valueType) |
| bool | setTarget (QObject *, int coreIndex, bool coreIsAlias, int valueTypeIndex) |
| virtual void | setEnabled (bool e, QQmlPropertyData::WriteFlags f=QQmlPropertyData::DontRemoveBinding)=0 |
| void | addToObject () |
| Add this binding to object. | |
| void | removeFromObject () |
| Remove the binding from the object. | |
| virtual void | printBindingLoopError (const QQmlProperty &prop) |
| QQmlAbstractBinding * | nextBinding () const |
| bool | canUseAccessor () const |
| void | setCanUseAccessor (bool canUseAccessor) |
| bool | isSticky () const |
| void | setSticky (bool isSticky) |
Public Attributes | |
| RefCount | ref |
Protected Member Functions | |
| QQmlAbstractBinding () | |
| void | setAddedToObject (bool v) |
| bool | isAddedToObject () const |
| void | setNextBinding (QQmlAbstractBinding *) |
| void | getPropertyData (const QQmlPropertyData **propertyData, QQmlPropertyData *valueTypeData) const |
| bool | updatingFlag () const |
| void | setUpdatingFlag (bool) |
| bool | enabledFlag () const |
| void | setEnabledFlag (bool) |
| void | updateCanUseAccessor () |
Protected Attributes | |
| QQmlPropertyIndex | m_targetIndex |
| QTaggedPointer< QObject, TargetTags > | m_target |
| QTaggedPointer< QQmlAbstractBinding, State > | m_nextBinding |
Friends | |
| class | QQmlAnyBinding |
| class | QQmlData |
| class | QQmlValueTypeProxyBinding |
| class | QQmlObjectCreator |
\inmodule QtQml
Definition at line 29 of file qqmlabstractbinding_p.h.
Definition at line 43 of file qqmlabstractbinding_p.h.
| Enumerator | |
|---|---|
| ValueTypeProxy | |
| QmlBinding | |
| PropertyToPropertyBinding | |
Definition at line 35 of file qqmlabstractbinding_p.h.
| Enumerator | |
|---|---|
| Disabled | |
| AddedToObject | |
| BindingEnabled | |
| UpdatingBinding | |
Definition at line 90 of file qqmlabstractbinding_p.h.
| Enumerator | |
|---|---|
| NoTargetTag | |
| CanUseAccessor | |
| IsSticky | |
Definition at line 97 of file qqmlabstractbinding_p.h.
|
protected |
Definition at line 19 of file qqmlabstractbinding.cpp.
|
virtual |
Definition at line 25 of file qqmlabstractbinding.cpp.
| void QQmlAbstractBinding::addToObject | ( | ) |
Add this binding to object.
This transfers ownership of the binding to the object, marks the object's property as being bound.
However, it does not enable the binding itself or call update() on it.
Definition at line 42 of file qqmlabstractbinding.cpp.
|
inline |
Definition at line 71 of file qqmlabstractbinding_p.h.
|
inlineprotected |
Definition at line 185 of file qqmlabstractbinding_p.h.
|
virtual |
Reimplemented in QQmlBinding.
Definition at line 287 of file qqmlabstractbinding.cpp.
|
protected |
Definition at line 168 of file qqmlabstractbinding.cpp.
|
inlineprotected |
Definition at line 156 of file qqmlabstractbinding_p.h.
|
inline |
Definition at line 76 of file qqmlabstractbinding_p.h.
|
pure virtual |
Implemented in QQmlBinding, QQmlPropertyToUnbindablePropertyBinding, and QQmlValueTypeProxyBinding.
|
inline |
Definition at line 161 of file qqmlabstractbinding_p.h.
|
virtual |
Reimplemented in QQmlBinding.
Definition at line 163 of file qqmlabstractbinding.cpp.
| void QQmlAbstractBinding::removeFromObject | ( | ) |
Remove the binding from the object.
Definition at line 97 of file qqmlabstractbinding.cpp.
|
inlineprotected |
Definition at line 151 of file qqmlabstractbinding_p.h.
|
inline |
Definition at line 73 of file qqmlabstractbinding_p.h.
|
pure virtual |
Implemented in QQmlBinding, QQmlPropertyToUnbindablePropertyBinding, and QQmlValueTypeProxyBinding.
|
inlineprotected |
Definition at line 190 of file qqmlabstractbinding_p.h.
|
inlineprotected |
Definition at line 166 of file qqmlabstractbinding_p.h.
|
inline |
Definition at line 77 of file qqmlabstractbinding_p.h.
| void QQmlAbstractBinding::setTarget | ( | const QQmlProperty & | prop | ) |
Definition at line 202 of file qqmlabstractbinding.cpp.
| bool QQmlAbstractBinding::setTarget | ( | QObject * | object, |
| const QQmlPropertyData & | core, | ||
| const QQmlPropertyData * | valueType ) |
Definition at line 208 of file qqmlabstractbinding.cpp.
| bool QQmlAbstractBinding::setTarget | ( | QObject * | object, |
| int | coreIndex, | ||
| bool | coreIsAlias, | ||
| int | valueTypeIndex ) |
Definition at line 232 of file qqmlabstractbinding.cpp.
|
inlineprotected |
Definition at line 180 of file qqmlabstractbinding_p.h.
|
inline |
Definition at line 56 of file qqmlabstractbinding_p.h.
|
inline |
Definition at line 52 of file qqmlabstractbinding_p.h.
|
protected |
Definition at line 193 of file qqmlabstractbinding.cpp.
|
inlineprotected |
Definition at line 175 of file qqmlabstractbinding_p.h.
|
friend |
Definition at line 31 of file qqmlabstractbinding_p.h.
|
friend |
Definition at line 105 of file qqmlabstractbinding_p.h.
|
friend |
Definition at line 107 of file qqmlabstractbinding_p.h.
|
friend |
Definition at line 106 of file qqmlabstractbinding_p.h.
|
protected |
Definition at line 129 of file qqmlabstractbinding_p.h.
|
protected |
Definition at line 126 of file qqmlabstractbinding_p.h.
|
protected |
Definition at line 123 of file qqmlabstractbinding_p.h.
| RefCount QQmlAbstractBinding::ref |
Definition at line 86 of file qqmlabstractbinding_p.h.