![]() |
Qt 6.x
The Qt SDK
|
#include <qproperty.h>
Public Types | |
using | BindingFunctionVTable = QtPrivate::BindingFunctionVTable |
Friends | |
class | QtPrivate::QPropertyBindingData |
class | QPropertyBindingPrivate |
template<typename > | |
class | QPropertyBinding |
Definition at line 157 of file qproperty.h.
Definition at line 161 of file qproperty.h.
|
default |
Constructs a null QUntypedPropertyBinding.
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.
|
inline |
Definition at line 167 of file qproperty.h.
QUntypedPropertyBinding::QUntypedPropertyBinding | ( | QUntypedPropertyBinding && | other | ) |
Move-constructs a QUntypedPropertyBinding from other.
other is left in a null state.
Definition at line 384 of file qproperty.cpp.
QUntypedPropertyBinding::QUntypedPropertyBinding | ( | const QUntypedPropertyBinding & | other | ) |
Copy-constructs a QUntypedPropertyBinding from other.
Definition at line 392 of file qproperty.cpp.
QUntypedPropertyBinding::~QUntypedPropertyBinding | ( | ) |
Destroys the QUntypedPropertyBinding.
Definition at line 429 of file qproperty.cpp.
|
explicit |
Definition at line 421 of file qproperty.cpp.
QPropertyBindingError QUntypedPropertyBinding::error | ( | ) | const |
Returns the error state of the binding.
Definition at line 449 of file qproperty.cpp.
References QPropertyBindingPrivatePtr::get().
Referenced by QQmlAnyBinding::hasError().
bool QUntypedPropertyBinding::isNull | ( | ) | const |
Returns true
if the QUntypedPropertyBinding
is null.
This is only true for default-constructed and moved-from instances.
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().
QUntypedPropertyBinding & QUntypedPropertyBinding::operator= | ( | const QUntypedPropertyBinding & | other | ) |
Copy-assigns other to this QUntypedPropertyBinding.
Definition at line 400 of file qproperty.cpp.
References other().
QUntypedPropertyBinding & QUntypedPropertyBinding::operator= | ( | QUntypedPropertyBinding && | other | ) |
Move-assigns other to this QUntypedPropertyBinding.
other is left in a null state.
Definition at line 412 of file qproperty.cpp.
References other().
QMetaType QUntypedPropertyBinding::valueMetaType | ( | ) | const |
Returns the meta-type of the binding.
If the QUntypedProperyBinding 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().
|
friend |
Definition at line 187 of file qproperty.h.
|
friend |
Definition at line 186 of file qproperty.h.
Referenced by QUntypedPropertyBinding().
|
friend |
Definition at line 185 of file qproperty.h.