![]() |
Qt 6.x
The Qt SDK
|
#include <qqmlmetaobject_p.h>
Public Types | |
typedef QVarLengthArray< QMetaType, 9 > | ArgTypeStorage |
Public Member Functions | |
QQmlMetaObject ()=default | |
QQmlMetaObject (const QObject *) | |
QQmlMetaObject (const QMetaObject *) | |
QQmlMetaObject (const QQmlPropertyCache::ConstPtr &) | |
QQmlMetaObject (const QQmlMetaObject &) | |
QQmlMetaObject & | operator= (const QQmlMetaObject &) |
bool | isNull () const |
const char * | className () const |
int | propertyCount () const |
const QMetaObject * | metaObject () const |
QMetaType | methodReturnType (const QQmlPropertyData &data, QByteArray *unknownTypeError) const |
bool | methodParameterTypes (int index, ArgTypeStorage *argStorage, QByteArray *unknownTypeError) const |
bool | constructorParameterTypes (int index, ArgTypeStorage *dummy, QByteArray *unknownTypeError) const |
Static Public Member Functions | |
static bool | canConvert (const QQmlMetaObject &from, const QQmlMetaObject &to) |
static void | resolveGadgetMethodOrPropertyIndex (QMetaObject::Call type, const QMetaObject **metaObject, int *index) |
static bool | methodParameterTypes (const QMetaMethod &method, ArgTypeStorage *argStorage, QByteArray *unknownTypeError) |
Protected Attributes | |
const QMetaObject * | _m = nullptr |
Definition at line 34 of file qqmlmetaobject_p.h.
typedef QVarLengthArray<QMetaType, 9> QQmlMetaObject::ArgTypeStorage |
Definition at line 37 of file qqmlmetaobject_p.h.
|
inlinedefault |
|
inline |
Definition at line 87 of file qqmlmetaobject_p.h.
|
inline |
Definition at line 93 of file qqmlmetaobject_p.h.
|
inline |
Definition at line 98 of file qqmlmetaobject_p.h.
References _m.
|
inline |
Definition at line 104 of file qqmlmetaobject_p.h.
|
inlinestatic |
Definition at line 70 of file qqmlmetaobject_p.h.
References QMetaObject::inherits(), isNull(), metaObject(), and Q_ASSERT.
Referenced by instanceOfQObject(), isObjectCompatible(), QV4::QQmlTypeWrapper::virtualInstanceOf(), and QQmlPropertyPrivate::write().
|
inline |
Definition at line 120 of file qqmlmetaobject_p.h.
References _m, QMetaObject::className(), and metaObject().
Referenced by QQmlPropertyCacheCreator< ObjectContainer >::createMetaObject().
bool QQmlMetaObject::constructorParameterTypes | ( | int | index, |
ArgTypeStorage * | dummy, | ||
QByteArray * | unknownTypeError | ||
) | const |
Returns false if one of the types is unknown. Otherwise, fills argstorage with the metatypes of the function.
Definition at line 68 of file qqmlmetaobject.cpp.
References _m, QMetaObject::constructor(), and methodParameterTypes().
|
inline |
Definition at line 115 of file qqmlmetaobject_p.h.
References _m.
Referenced by canConvert(), instanceOfQObject(), isObjectCompatible(), QObjectPointerBinding::write(), QQmlPropertyPrivate::write(), and QObjectPointerBinding::write().
|
inline |
Definition at line 134 of file qqmlmetaobject_p.h.
References _m.
Referenced by canConvert(), className(), dynamicQmlMetaObject(), QQmlListReferencePrivate::elementType(), QQmlPrivate::isTypeCompatible(), QQmlPrivate::AOTCompiledContext::loadTypeLookup(), QQmlObjectOrGadget::metacall(), propertyCount(), and resolveGadgetMethodOrPropertyIndex().
|
static |
Definition at line 75 of file qqmlmetaobject.cpp.
References QMetaType::IsEnumeration, Q_ASSERT, QVarLengthArray< T, Prealloc >::resize(), and QMetaType::underlyingType().
bool QQmlMetaObject::methodParameterTypes | ( | int | index, |
ArgTypeStorage * | argStorage, | ||
QByteArray * | unknownTypeError | ||
) | const |
Returns false if one of the types is unknown. Otherwise, fills argstorage with the metatypes of the function.
Definition at line 59 of file qqmlmetaobject.cpp.
References _m, QMetaObject::method(), methodParameterTypes(), and Q_ASSERT.
Referenced by constructorParameterTypes(), QV4::QObjectSlotDispatcher::impl(), and methodParameterTypes().
QMetaType QQmlMetaObject::methodReturnType | ( | const QQmlPropertyData & | data, |
QByteArray * | unknownTypeError | ||
) | const |
Definition at line 41 of file qqmlmetaobject.cpp.
References _m, QMetaType::IsEnumeration, QMetaObject::method(), Q_ASSERT, QMetaMethod::returnMetaType(), QMetaMethod::typeName(), and QMetaType::underlyingType().
|
inline |
Definition at line 109 of file qqmlmetaobject_p.h.
|
inline |
Definition at line 127 of file qqmlmetaobject_p.h.
References _m, metaObject(), and QMetaObject::propertyCount().
|
static |
Definition at line 11 of file qqmlmetaobject.cpp.
References QMetaObject::InvokeMetaMethod, metaObject(), QMetaObject::methodOffset(), QMetaObject::propertyOffset(), Q_UNIMPLEMENTED, QMetaObject::ReadProperty, QMetaObject::ResetProperty, QMetaObject::superClass(), and QMetaObject::WriteProperty.
Referenced by QV4::getGadgetProperty(), QQmlGadgetPtrWrapper::metaCall(), and QQmlObjectOrGadget::metacall().
|
protected |
Definition at line 83 of file qqmlmetaobject_p.h.
Referenced by QQmlMetaObject(), QQmlMetaObject(), className(), constructorParameterTypes(), isNull(), QQmlObjectOrGadget::metacall(), metaObject(), methodParameterTypes(), methodReturnType(), operator=(), and propertyCount().