Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QUntypedPropertyBinding Class Reference

#include <qproperty.h>

+ Inheritance diagram for QUntypedPropertyBinding:
+ Collaboration diagram for QUntypedPropertyBinding:

Public Types

using BindingFunctionVTable = QtPrivate::BindingFunctionVTable
 

Public Member Functions

 QUntypedPropertyBinding ()
 Constructs a null QUntypedPropertyBinding.
 
 QUntypedPropertyBinding (QMetaType metaType, const BindingFunctionVTable *vtable, void *function, const QPropertyBindingSourceLocation &location)
 
template<typename Functor >
 QUntypedPropertyBinding (QMetaType metaType, Functor &&f, const QPropertyBindingSourceLocation &location)
 
 QUntypedPropertyBinding (QUntypedPropertyBinding &&other)
 Move-constructs a QUntypedPropertyBinding from other.
 
 QUntypedPropertyBinding (const QUntypedPropertyBinding &other)
 Copy-constructs a QUntypedPropertyBinding from other.
 
QUntypedPropertyBindingoperator= (const QUntypedPropertyBinding &other)
 Copy-assigns other to this QUntypedPropertyBinding.
 
QUntypedPropertyBindingoperator= (QUntypedPropertyBinding &&other)
 Move-assigns other to this QUntypedPropertyBinding.
 
 ~QUntypedPropertyBinding ()
 Destroys the QUntypedPropertyBinding.
 
bool isNull () const
 Returns true if the QUntypedPropertyBinding is null.
 
QPropertyBindingError error () const
 Returns the error state of the binding.
 
QMetaType valueMetaType () const
 Returns the meta-type of the binding.
 
 QUntypedPropertyBinding (QPropertyBindingPrivate *priv)
 

Friends

class QtPrivate::QPropertyBindingData
 
class QPropertyBindingPrivate
 
template<typename >
class QPropertyBinding
 

Detailed Description

Definition at line 157 of file qproperty.h.

Member Typedef Documentation

◆ BindingFunctionVTable

Constructor & Destructor Documentation

◆ QUntypedPropertyBinding() [1/6]

QUntypedPropertyBinding::QUntypedPropertyBinding ( )
default

Constructs a null QUntypedPropertyBinding.

See also
isNull()

◆ QUntypedPropertyBinding() [2/6]

QUntypedPropertyBinding::QUntypedPropertyBinding ( QMetaType metaType,
const BindingFunctionVTable * vtable,
void * function,
const QPropertyBindingSourceLocation & location )

Constructs QUntypedPropertyBinding. Assumes that metaType, function and vtable match. Unless a specialization of BindingFunctionVTable is used, this function should never be called directly.

Definition at line 370 of file qproperty.cpp.

References function, QPropertyBindingPrivate::getSizeEnsuringAlignment(), QtPrivate::BindingFunctionVTable::moveConstruct, QPropertyBindingPrivate, and QtPrivate::BindingFunctionVTable::size.

+ Here is the call graph for this function:

◆ QUntypedPropertyBinding() [3/6]

template<typename Functor >
QUntypedPropertyBinding::QUntypedPropertyBinding ( QMetaType metaType,
Functor && f,
const QPropertyBindingSourceLocation & location )
inline

Definition at line 167 of file qproperty.h.

◆ QUntypedPropertyBinding() [4/6]

QUntypedPropertyBinding::QUntypedPropertyBinding ( QUntypedPropertyBinding && other)

Move-constructs a QUntypedPropertyBinding from other.

other is left in a null state.

See also
isNull()

Definition at line 384 of file qproperty.cpp.

◆ QUntypedPropertyBinding() [5/6]

QUntypedPropertyBinding::QUntypedPropertyBinding ( const QUntypedPropertyBinding & other)

Copy-constructs a QUntypedPropertyBinding from other.

Definition at line 392 of file qproperty.cpp.

◆ ~QUntypedPropertyBinding()

QUntypedPropertyBinding::~QUntypedPropertyBinding ( )

Destroys the QUntypedPropertyBinding.

Definition at line 429 of file qproperty.cpp.

◆ QUntypedPropertyBinding() [6/6]

QUntypedPropertyBinding::QUntypedPropertyBinding ( QPropertyBindingPrivate * priv)
explicit

Definition at line 421 of file qproperty.cpp.

Member Function Documentation

◆ error()

QPropertyBindingError QUntypedPropertyBinding::error ( ) const

Returns the error state of the binding.

See also
QPropertyBindingError

Definition at line 449 of file qproperty.cpp.

References QPropertyBindingPrivatePtr::get().

Referenced by QQmlAnyBinding::hasError().

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

◆ isNull()

bool QUntypedPropertyBinding::isNull ( ) const

Returns true if the QUntypedPropertyBinding is null.

This is only true for default-constructed and moved-from instances.

See also
isNull()

Definition at line 439 of file qproperty.cpp.

Referenced by BindingFixer::~BindingFixer(), QUntypedBindable::hasBinding(), QUntypedBindable::setBinding(), QProperty< T >::setBinding(), QObjectBindableProperty< Class, T, Offset, Signal >::setBinding(), and QObjectCompatProperty< Class, T, Offset, Setter, Signal, Getter >::setBinding().

+ Here is the caller graph for this function:

◆ operator=() [1/2]

QUntypedPropertyBinding & QUntypedPropertyBinding::operator= ( const QUntypedPropertyBinding & other)

Copy-assigns other to this QUntypedPropertyBinding.

Definition at line 400 of file qproperty.cpp.

References other().

+ Here is the call graph for this function:

◆ operator=() [2/2]

QUntypedPropertyBinding & QUntypedPropertyBinding::operator= ( QUntypedPropertyBinding && other)

Move-assigns other to this QUntypedPropertyBinding.

other is left in a null state.

See also
isNull

Definition at line 412 of file qproperty.cpp.

References other().

+ Here is the call graph for this function:

◆ valueMetaType()

QMetaType QUntypedPropertyBinding::valueMetaType ( ) const

Returns the meta-type of the binding.

If the QUntypedPropertyBinding is null, an invalid QMetaType is returned.

Definition at line 460 of file qproperty.cpp.

References QPropertyBindingPrivatePtr::get(), and valueMetaType().

Referenced by UntypedProxyProperty::bindingSetter(), QUntypedBindable::setBinding(), QProperty< T >::setBinding(), QObjectBindableProperty< Class, T, Offset, Signal >::setBinding(), QObjectCompatProperty< Class, T, Offset, Setter, Signal, Getter >::setBinding(), and valueMetaType().

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

Friends And Related Symbol Documentation

◆ QPropertyBinding

template<typename >
friend class QPropertyBinding
friend

Definition at line 187 of file qproperty.h.

◆ QPropertyBindingPrivate

friend class QPropertyBindingPrivate
friend

Definition at line 186 of file qproperty.h.

Referenced by QUntypedPropertyBinding().

◆ QtPrivate::QPropertyBindingData

friend class QtPrivate::QPropertyBindingData
friend

Definition at line 185 of file qproperty.h.


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