![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The UntypedProxyProperty class is a property used in Behavior to handle bindable properties. More...
Public Member Functions | |
UntypedProxyProperty (QUntypedBindable bindable, QQuickBehaviorPrivate *behavior) | |
QUntypedBindable | getBindable () |
QMetaType | type () const |
QVariant | value () const |
UntypedProxyProperty (QUntypedBindable bindable, QQuickBehaviorPrivate *behavior) | |
QUntypedBindable | getBindable () |
QMetaType | type () const |
QVariant | value () const |
The UntypedProxyProperty class is a property used in Behavior to handle bindable properties.
Whenever a bindable property with a Behavior gets a request for its bindable interface, we instead return the bindable interface of the UntypedProxyProperty. This causes all reads and writes to be intercepted to use m_storage
instead; moreover, any installed binding will also use m_storage
as the property data for the binding.
The BehaviorPrivate acts as an observer, listening to changes of the proxy property. If those occur, QQuickBehavior::write is called with the new value, which will then adjust the actual property (playing animations if necessary).
Definition at line 40 of file qquickbehavior.cpp.
UntypedProxyProperty::UntypedProxyProperty | ( | QUntypedBindable | bindable, |
QQuickBehaviorPrivate * | behavior ) |
Definition at line 153 of file qquickbehavior.cpp.
References UntypedProxyProperty().
Referenced by UntypedProxyProperty().
UntypedProxyProperty::UntypedProxyProperty | ( | QUntypedBindable | bindable, |
QQuickBehaviorPrivate * | behavior ) |
|
inlinestatic |
Definition at line 68 of file qquickbehavior.cpp.
|
inlinestatic |
Definition at line 68 of file qquickbehavior.cpp.
|
inlinestatic |
Definition at line 74 of file qquickbehavior.cpp.
|
inlinestatic |
Definition at line 74 of file qquickbehavior.cpp.
QUntypedBindable UntypedProxyProperty::getBindable | ( | ) |
Definition at line 128 of file qquickbehavior.cpp.
References UntypedProxyPropertyBindable::UntypedProxyPropertyBindable().
QUntypedBindable UntypedProxyProperty::getBindable | ( | ) |
|
inlinestatic |
Definition at line 47 of file qquickbehavior.cpp.
|
inlinestatic |
Definition at line 47 of file qquickbehavior.cpp.
|
inlinestatic |
Definition at line 90 of file qquickbehavior.cpp.
|
inlinestatic |
Definition at line 90 of file qquickbehavior.cpp.
|
inlinestatic |
Definition at line 97 of file qquickbehavior.cpp.
|
inlinestatic |
Definition at line 97 of file qquickbehavior.cpp.
|
inlinestatic |
Definition at line 61 of file qquickbehavior.cpp.
|
inlinestatic |
Definition at line 61 of file qquickbehavior.cpp.
|
inline |
Definition at line 108 of file qquickbehavior.cpp.
|
inline |
Definition at line 108 of file qquickbehavior.cpp.
|
inline |
Definition at line 109 of file qquickbehavior.cpp.
|
inline |
Definition at line 109 of file qquickbehavior.cpp.