Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlBindableToUnbindablePropertyBinding Class Reference

#include <qqmlpropertytopropertybinding_p.h>

Inheritance diagram for QQmlBindableToUnbindablePropertyBinding:
Collaboration diagram for QQmlBindableToUnbindablePropertyBinding:

Public Member Functions

 QQmlBindableToUnbindablePropertyBinding (QQmlEngine *engine, const QQmlProperty &source, const QQmlProperty &target)
Public Member Functions inherited from QPropertyObserver
constexpr QPropertyObserver ()=default
 QPropertyObserver (QPropertyObserver &&other) noexcept
QPropertyObserveroperator= (QPropertyObserver &&other) noexcept
 ~QPropertyObserver ()
template<typename Property, QtPrivate::IsUntypedPropertyData< Property > = true>
void setSource (const Property &property)
void setSource (const QtPrivate::QPropertyBindingData &property)
Public Member Functions inherited from QQmlPropertyToUnbindablePropertyBinding
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
QQmlPropertyIndex targetPropertyIndex () const
QObjecttargetObject () const
void setTarget (const QQmlProperty &)
bool setTarget (QObject *, const QQmlPropertyData &, const QQmlPropertyData *valueType)
bool setTarget (QObject *, int coreIndex, bool coreIsAlias, int valueTypeIndex)
void addToObject ()
 Add this binding to object.
void removeFromObject ()
 Remove the binding from the object.
virtual void printBindingLoopError (const QQmlProperty &prop)
QQmlAbstractBindingnextBinding () const
bool canUseAccessor () const
void setCanUseAccessor (bool canUseAccessor)
bool isSticky () const
void setSticky (bool isSticky)

Static Public Member Functions

static void update (QPropertyObserver *observer, QUntypedPropertyData *)

Protected Member Functions

void captureProperty (const QMetaObject *sourceMetaObject, const QMetaProperty &sourceProperty) final
Protected Member Functions inherited from QPropertyObserver
 QPropertyObserver (ChangeHandler changeHandler)
QUntypedPropertyDataaliasedProperty () const
Protected Member Functions inherited from QQmlPropertyToUnbindablePropertyBinding
 QQmlPropertyToUnbindablePropertyBinding (QQmlEngine *engine, const QQmlProperty &source, const QQmlProperty &target)
Protected Member Functions inherited from QQmlAbstractBinding
 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 ()

Additional Inherited Members

Public Types inherited from QPropertyObserverBase
enum  ObserverTag { ObserverNotifiesBinding , ObserverNotifiesChangeHandler , ObserverIsPlaceholder }
Public Types inherited from QQmlAbstractBinding
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< QQmlAbstractBindingPtr
Public Attributes inherited from QQmlAbstractBinding
RefCount ref
Protected Types inherited from QPropertyObserverBase
using ChangeHandler = void (*)(QPropertyObserver*, QUntypedPropertyData *)
Protected Attributes inherited from QQmlPropertyToUnbindablePropertyBinding
QQmlPropertyToPropertyBinding m_binding
Protected Attributes inherited from QQmlAbstractBinding
QQmlPropertyIndex m_targetIndex
QTaggedPointer< QObject, TargetTags > m_target
QTaggedPointer< QQmlAbstractBinding, Statem_nextBinding

Detailed Description

Definition at line 121 of file qqmlpropertytopropertybinding_p.h.

Constructor & Destructor Documentation

◆ QQmlBindableToUnbindablePropertyBinding()

QQmlBindableToUnbindablePropertyBinding::QQmlBindableToUnbindablePropertyBinding ( QQmlEngine * engine,
const QQmlProperty & source,
const QQmlProperty & target )

Definition at line 122 of file qqmlpropertytopropertybinding.cpp.

References QQmlBindableToUnbindablePropertyBinding().

Referenced by QQmlBindableToUnbindablePropertyBinding().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ captureProperty()

void QQmlBindableToUnbindablePropertyBinding::captureProperty ( const QMetaObject * sourceMetaObject,
const QMetaProperty & sourceProperty )
finalprotectedvirtual

◆ update()

void QQmlBindableToUnbindablePropertyBinding::update ( QPropertyObserver * observer,
QUntypedPropertyData *  )
static

Definition at line 129 of file qqmlpropertytopropertybinding.cpp.


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