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>.
|
#include <qqmltype_p_p.h>
Classes | |
struct | Enums |
union | extraData |
struct | ProxyMetaObjects |
struct | QQmlCppTypeData |
struct | QQmlSingletonTypeData |
Public Member Functions | |
QQmlTypePrivate (QQmlType::RegistrationType type) | |
const ProxyMetaObjects * | init () const |
QUrl | sourceUrl () const |
const QQmlTypePrivate * | attachedPropertiesBase (QQmlEnginePrivate *engine) const |
bool | isComposite () const |
bool | isValueType () const |
QQmlType | resolveCompositeBaseType (QQmlEnginePrivate *engine) const |
QQmlPropertyCache::ConstPtr | compositePropertyCache (QQmlEnginePrivate *engine) const |
void | setName (const QString &uri, const QString &element) |
const QMetaObject * | metaObject () const |
const QMetaObject * | metaObjectForValueType () const |
Public Member Functions inherited from QQmlRefCounted< QQmlTypePrivate > | |
void | release () const |
Public Member Functions inherited from QQmlRefCount | |
QQmlRefCount () | |
void | addref () const |
int | count () const |
Static Public Member Functions | |
template<typename String > | |
static int | enumValue (const QQmlRefPointer< const QQmlTypePrivate > &d, QQmlEnginePrivate *engine, const String &name, bool *ok) |
template<typename String > | |
static int | scopedEnumIndex (const QQmlRefPointer< const QQmlTypePrivate > &d, QQmlEnginePrivate *engine, const String &name, bool *ok) |
template<typename String > | |
static int | scopedEnumValue (const QQmlRefPointer< const QQmlTypePrivate > &d, QQmlEnginePrivate *engine, int index, const String &name, bool *ok) |
template<typename String1 , typename String2 > | |
static int | scopedEnumValue (const QQmlRefPointer< const QQmlTypePrivate > &d, QQmlEnginePrivate *engine, const String1 &scopedEnumName, const String2 &name, bool *ok) |
static QQmlType | compositeQmlType (const QQmlRefPointer< QV4::CompiledData::CompilationUnit > &unit, QQmlTypeLoader *typeLoader, const QString &type) |
Public Attributes | |
int | index = -1 |
union QQmlTypePrivate::extraData | extraData |
QHashedString QString | name |
QString | elementName |
QMetaType | typeId |
QMetaType | listId |
QQmlType::RegistrationType | regType |
QTypeRevision | version |
QTypeRevision | revision = QTypeRevision::zero() |
const QMetaObject * | baseMetaObject = nullptr |
Friends | |
class | QQmlRefCounted< QQmlTypePrivate > |
Additional Inherited Members | |
Protected Member Functions inherited from QQmlRefCounted< QQmlTypePrivate > | |
~QQmlRefCounted () | |
Definition at line 32 of file qqmltype_p_p.h.
QT_BEGIN_NAMESPACE QQmlTypePrivate::QQmlTypePrivate | ( | QQmlType::RegistrationType | type | ) |
Definition at line 19 of file qqmltype.cpp.
References QQmlTypePrivate::QQmlCppTypeData::allocationSize, QQmlTypePrivate::QQmlCppTypeData::attachedPropertiesFunc, QQmlTypePrivate::QQmlCppTypeData::attachedPropertiesType, QQmlType::CompositeSingletonType, QQmlType::CompositeType, QQmlTypePrivate::extraData::compositeTypeData, QQmlType::CppType, QQmlTypePrivate::extraData::cppTypeData, QQmlTypePrivate::QQmlCppTypeData::createValueTypeFunc, QQmlTypePrivate::QQmlCppTypeData::customParser, QQmlTypePrivate::QQmlCppTypeData::extFunc, QQmlTypePrivate::QQmlSingletonTypeData::extFunc, QQmlTypePrivate::QQmlCppTypeData::extMetaObject, QQmlTypePrivate::QQmlSingletonTypeData::extMetaObject, QQmlTypePrivate::QQmlCppTypeData::finalizerCast, QQmlType::InlineComponentType, QQmlTypePrivate::extraData::inlineComponentTypeData, QQmlType::InterfaceType, QQmlTypePrivate::extraData::interfaceTypeData, QQmlTypePrivate::QQmlCppTypeData::newFunc, QQmlTypePrivate::QQmlCppTypeData::parserStatusCast, QQmlTypePrivate::QQmlCppTypeData::propertyValueInterceptorCast, QQmlTypePrivate::QQmlCppTypeData::propertyValueSourceCast, qFatal, QQmlTypePrivate::QQmlCppTypeData::registerEnumClassesUnscoped, QQmlTypePrivate::QQmlCppTypeData::registerEnumsFromRelatedTypes, QQmlType::SequentialContainerType, QQmlTypePrivate::extraData::sequentialContainerTypeData, QQmlTypePrivate::QQmlSingletonTypeData::singletonInstanceInfo, QQmlType::SingletonType, and QQmlTypePrivate::extraData::singletonTypeData.
|
inline |
Definition at line 75 of file qqmltype_p_p.h.
References QQmlType::CompositeType, QQmlType::CppType, d, engine, extraData, and resolveCompositeBaseType().
Referenced by QQmlType::attachedPropertiesFunction(), and QQmlType::attachedPropertiesType().
QQmlPropertyCache::ConstPtr QQmlTypePrivate::compositePropertyCache | ( | QQmlEnginePrivate * | engine | ) | const |
Definition at line 154 of file qqmltype.cpp.
References engine, isComposite(), Q_ASSERT, QV4::CompiledData::CompilationUnit::rootPropertyCache(), and sourceUrl().
|
inlinestatic |
Definition at line 237 of file qqmltype_p_p.h.
References QQmlImport::AllowRecursion, QQmlMetaType::obtainCompilationUnit(), and Q_ASSERT.
Referenced by QV4::Function::Function(), QQmlPrivate::compositeListMetaType(), and QQmlPrivate::compositeMetaType().
|
inlinestatic |
Definition at line 157 of file qqmltype_p_p.h.
References d, engine, QQmlTypePrivate::Enums::enums, ok, and QStringHash< T >::value().
Referenced by QQmlType::enumValue(), QQmlType::enumValue(), and QQmlType::enumValue().
const QQmlTypePrivate::ProxyMetaObjects * QQmlTypePrivate::init | ( | ) | const |
Definition at line 173 of file qqmltype.cpp.
References baseMetaObject, QQmlMetaType::clone(), QQmlMetaType::CloneAll, QQmlMetaType::CloneEnumsOnly, QQmlTypePrivate::ProxyMetaObjects::containsRevisionedAttributes, QQmlType::CppType, QQmlTypePrivate::extraData::cppTypeData, QMetaObject::d, QQmlTypePrivate::ProxyMetaObjects::data, QQmlTypePrivate::QQmlCppTypeData::extFunc, QQmlTypePrivate::QQmlSingletonTypeData::extFunc, QQmlTypePrivate::QQmlCppTypeData::extMetaObject, QQmlTypePrivate::QQmlSingletonTypeData::extMetaObject, isPropertyRevisioned(), mo, QQmlMetaType::proxyData(), QQmlMetaType::registerMetaObjectForType(), regType, QQmlType::SingletonType, QQmlTypePrivate::extraData::singletonTypeData, and QMetaObjectBuilder::toMetaObject().
Referenced by QQmlType::containsRevisionedAttributes(), QQmlType::createProxy(), QQmlType::isExtendedType(), and metaObject().
|
inline |
Definition at line 87 of file qqmltype_p_p.h.
References QQmlType::CompositeSingletonType, QQmlType::CompositeType, and regType.
Referenced by compositePropertyCache(), QQmlType::isComposite(), and resolveCompositeBaseType().
|
inline |
Definition at line 92 of file qqmltype_p_p.h.
References QQmlType::CppType, QMetaType::flags(), QMetaType::PointerToQObject, regType, and typeId.
Referenced by QQmlType::isValueType(), metaObject(), and metaObjectForValueType().
|
inline |
Definition at line 203 of file qqmltype_p_p.h.
References baseMetaObject, QList< T >::constFirst(), QQmlTypePrivate::ProxyMetaObjects::data, init(), QList< T >::isEmpty(), isValueType(), QQmlProxyMetaObject::ProxyData::metaObject, and metaObjectForValueType().
Referenced by QQmlTypePrivate::ProxyMetaObjects::~ProxyMetaObjects(), and QQmlType::metaObject().
|
inline |
Definition at line 214 of file qqmltype_p_p.h.
References baseMetaObject, QQmlTypePrivate::extraData::cppTypeData, QQmlTypePrivate::QQmlCppTypeData::extMetaObject, QMetaType::flags(), QMetaType::IsGadget, isValueType(), QMetaObject::metaType(), and Q_ASSERT.
Referenced by metaObject(), and QQmlType::metaObjectForValueType().
QQmlType QQmlTypePrivate::resolveCompositeBaseType | ( | QQmlEnginePrivate * | engine | ) | const |
Definition at line 141 of file qqmltype.cpp.
References engine, isComposite(), mo, Q_ASSERT, QQmlMetaType::qmlType(), QV4::CompiledData::CompilationUnit::rootPropertyCache(), and sourceUrl().
Referenced by attachedPropertiesBase().
|
inlinestatic |
Definition at line 167 of file qqmltype_p_p.h.
References d, engine, ok, QQmlTypePrivate::Enums::scopedEnumIndex, and QStringHash< T >::value().
Referenced by QQmlType::scopedEnumIndex(), and QQmlType::scopedEnumIndex().
|
inlinestatic |
Definition at line 188 of file qqmltype_p_p.h.
References QList< T >::at(), d, engine, ok, Q_ASSERT, QQmlTypePrivate::Enums::scopedEnumIndex, QQmlTypePrivate::Enums::scopedEnums, and QStringHash< T >::value().
|
inlinestatic |
Definition at line 177 of file qqmltype_p_p.h.
References QList< T >::at(), d, engine, ok, Q_ASSERT, QQmlTypePrivate::Enums::scopedEnums, and QStringHash< T >::value().
Referenced by QQmlType::scopedEnumValue(), QQmlType::scopedEnumValue(), and QQmlType::scopedEnumValue().
Definition at line 444 of file qqmltype.cpp.
References elementName, and QString::isEmpty().
|
inline |
Definition at line 61 of file qqmltype_p_p.h.
References QQmlType::CompositeSingletonType, QQmlType::CompositeType, QQmlTypePrivate::extraData::compositeTypeData, QQmlType::InlineComponentType, QQmlTypePrivate::extraData::inlineComponentTypeData, regType, QQmlTypePrivate::QQmlSingletonTypeData::singletonInstanceInfo, and QQmlTypePrivate::extraData::singletonTypeData.
Referenced by compositePropertyCache(), resolveCompositeBaseType(), and QQmlType::sourceUrl().
|
friend |
Definition at line 262 of file qqmltype_p_p.h.
const QMetaObject* QQmlTypePrivate::baseMetaObject = nullptr |
Definition at line 152 of file qqmltype_p_p.h.
Referenced by QQmlType::baseMetaObject(), init(), metaObject(), metaObjectForValueType(), QQmlMetaType::rawMetaObjectForType(), and QQmlType::typeName().
QString QQmlTypePrivate::elementName |
Definition at line 146 of file qqmltype_p_p.h.
Referenced by QQmlType::elementName(), and setName().
union QQmlTypePrivate::extraData QQmlTypePrivate::extraData |
Referenced by attachedPropertiesBase(), QQmlType::canConstructValueType(), QQmlType::canPopulateValueType(), QQmlType::create(), QQmlType::createFunction(), QQmlType::createValueTypeFunction(), QQmlType::customParser(), QQmlType::extensionFunction(), QQmlType::extensionMetaObject(), QQmlType::finalizerCast(), QQmlType::interfaceIId(), QQmlType::isCreatable(), QQmlType::isQJSValueSingleton(), QQmlType::isQObjectSingleton(), QQmlType::listMetaSequence(), QQmlType::noCreationReason(), QQmlType::parserStatusCast(), QQmlType::propertyValueInterceptorCast(), QQmlType::propertyValueSourceCast(), QQmlType::singletonInstanceInfo(), and QQmlType::typeName().
int QQmlTypePrivate::index = -1 |
Definition at line 129 of file qqmltype_p_p.h.
Referenced by QQmlType::index().
QMetaType QQmlTypePrivate::listId |
Definition at line 148 of file qqmltype_p_p.h.
Referenced by QQmlType::qListTypeId().
QHashedString QString QQmlTypePrivate::name |
Definition at line 145 of file qqmltype_p_p.h.
Referenced by QQmlType::qmlTypeName().
QQmlType::RegistrationType QQmlTypePrivate::regType |
Definition at line 149 of file qqmltype_p_p.h.
Referenced by QQmlType::canConstructValueType(), QQmlType::canPopulateValueType(), QQmlType::createFunction(), QQmlType::createValueTypeFunction(), QQmlType::customParser(), QQmlType::extensionFunction(), QQmlType::extensionMetaObject(), QQmlType::finalizerCast(), init(), QQmlType::interfaceIId(), isComposite(), QQmlType::isCompositeSingleton(), QQmlType::isCreatable(), QQmlType::isInlineComponentType(), QQmlType::isInterface(), QQmlType::isQJSValueSingleton(), QQmlType::isQObjectSingleton(), QQmlType::isSequentialContainer(), QQmlType::isSingleton(), isValueType(), QQmlType::noCreationReason(), QQmlType::parserStatusCast(), QQmlType::propertyValueInterceptorCast(), QQmlType::propertyValueSourceCast(), QQmlType::singletonInstanceInfo(), sourceUrl(), and QQmlType::typeName().
QTypeRevision QQmlTypePrivate::revision = QTypeRevision::zero() |
Definition at line 151 of file qqmltype_p_p.h.
Referenced by QQmlType::metaObjectRevision().
QMetaType QQmlTypePrivate::typeId |
Definition at line 147 of file qqmltype_p_p.h.
Referenced by isValueType(), QQmlMetaType::listValueType(), and QQmlType::typeId().
QTypeRevision QQmlTypePrivate::version |
Definition at line 150 of file qqmltype_p_p.h.
Referenced by QQmlType::availableInVersion(), and QQmlType::version().