![]() |
Qt 6.x
The Qt SDK
|
#include <qqmlpropertytopropertybinding_p.h>
Inheritance diagram for QQmlPropertyToPropertyBinding:
Collaboration diagram for QQmlPropertyToPropertyBinding:Public Member Functions | |
| QQmlPropertyToPropertyBinding (QQmlEngine *engine, QObject *sourceObject, int sourcePropertyIndex, QObject *targetObject, int targetPropertyIndex) | |
| Kind | kind () const final |
| void | setEnabled (bool e, QQmlPropertyData::WriteFlags flags) final |
| void | update (QQmlPropertyData::WriteFlags flags=QQmlPropertyData::DontRemoveBinding) |
Public Member Functions inherited from QQmlAbstractBinding | |
| 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. | |
| QQmlAbstractBinding * | nextBinding () const |
| bool | canUseAccessor () const |
| void | setCanUseAccessor (bool canUseAccessor) |
Public Member Functions inherited from QQmlNotifierEndpoint | |
| QQmlNotifierEndpoint (Callback callback) | |
| ~QQmlNotifierEndpoint () | |
| bool | isConnected () const |
| bool | isConnected (QObject *source, int sourceSignal) const |
| bool | isConnected (QQmlNotifier *) const |
| void | connect (QObject *source, int sourceSignal, QQmlEngine *engine, bool doNotify=true) |
| void | connect (QQmlNotifier *) |
| void | disconnect () |
| bool | isNotifying () const |
| Returns true if a notify is in progress. | |
| void | startNotifying (qintptr *originalSenderPtr) |
| void | stopNotifying (qintptr *originalSenderPtr) |
| void | cancelNotify () |
| Cancel any notifies that are in progress. | |
| int | signalIndex () const |
| qintptr | sender () const |
| void | setSender (qintptr sender) |
| QObject * | senderAsObject () const |
| QQmlNotifier * | senderAsNotifier () const |
This class can be used to create a direct binding from a source property to a target property, without going through QQmlJavaScriptExpression and QV4::Function. In particular you don't need a compilation unit or byte code to set this up.
Definition at line 24 of file qqmlpropertytopropertybinding_p.h.
| QQmlPropertyToPropertyBinding::QQmlPropertyToPropertyBinding | ( | QQmlEngine * | engine, |
| QObject * | sourceObject, | ||
| int | sourcePropertyIndex, | ||
| QObject * | targetObject, | ||
| int | targetPropertyIndex | ||
| ) |
Definition at line 19 of file qqmlpropertytopropertybinding.cpp.
References QQmlAbstractBinding::setTarget(), QQmlAbstractBinding::targetObject(), and QQmlAbstractBinding::targetPropertyIndex().
Here is the call graph for this function:
|
finalvirtual |
Implements QQmlAbstractBinding.
Definition at line 30 of file qqmlpropertytopropertybinding.cpp.
References QQmlAbstractBinding::PropertyToPropertyBinding.
|
finalvirtual |
Implements QQmlAbstractBinding.
Definition at line 35 of file qqmlpropertytopropertybinding.cpp.
References e, QQmlAbstractBinding::enabledFlag(), QQmlAbstractBinding::setEnabledFlag(), update(), and QQmlAbstractBinding::updateCanUseAccessor().
Here is the call graph for this function:| void QQmlPropertyToPropertyBinding::update | ( | QQmlPropertyData::WriteFlags | flags = QQmlPropertyData::DontRemoveBinding | ) |
Definition at line 77 of file qqmlpropertytopropertybinding.cpp.
References QQmlPropertyData::BypassInterceptor, QQmlAbstractBinding::canUseAccessor(), d, QQmlAbstractBinding::enabledFlag(), QQmlAbstractBinding::getPropertyData(), QQmlPropertyData::isValid(), QQmlAbstractBinding::printBindingLoopError(), QMetaObject::property(), property, Q_ASSERT, Q_UNLIKELY, QQmlPropertyPrivate::restore(), QQmlAbstractBinding::setUpdatingFlag(), QMetaObjectPrivate::signalIndex(), QQmlAbstractBinding::targetObject(), QQmlAbstractBinding::updatingFlag(), QQmlData::wasDeleted(), and QQmlPropertyPrivate::writeValueProperty().
Referenced by setEnabled().
Here is the call graph for this function:
Here is the caller graph for this function: