Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlTypePrivate Class Referencefinal

#include <qqmltype_p_p.h>

+ Inheritance diagram for QQmlTypePrivate:
+ Collaboration diagram for QQmlTypePrivate:

Classes

struct  Enums
 
union  extraData
 
struct  ProxyMetaObjects
 
struct  QQmlCppTypeData
 
struct  QQmlSingletonTypeData
 

Public Member Functions

 QQmlTypePrivate (QQmlType::RegistrationType type)
 
const ProxyMetaObjectsinit () const
 
const EnumsinitEnums (QQmlEnginePrivate *engine) const
 
void insertEnums (Enums *enums, const QMetaObject *metaObject) const
 
void insertEnumsFromPropertyCache (Enums *enums, const QQmlPropertyCache::ConstPtr &cache) const
 
QUrl sourceUrl () const
 
const QQmlTypePrivateattachedPropertiesBase (QQmlEnginePrivate *engine) const
 
bool isComposite () const
 
QQmlType resolveCompositeBaseType (QQmlEnginePrivate *engine) const
 
QQmlPropertyCache::ConstPtr compositePropertyCache (QQmlEnginePrivate *engine) const
 
void setName (const QString &uri, const QString &element)
 
- Public Member Functions inherited from QQmlRefCounted< QQmlTypePrivate >
void release () const
 
- Public Member Functions inherited from QQmlRefCount
 QQmlRefCount ()
 
void addref () const
 
int count () const
 

Public Attributes

int index = -1
 
union QQmlTypePrivate::extraData extraData
 
QHashedString module
 
QString name
 
QString elementName
 
QMetaType typeId
 
QMetaType listId
 
QQmlType::RegistrationType regType
 
QTypeRevision version
 
QTypeRevision revision = QTypeRevision::zero()
 
const QMetaObjectbaseMetaObject = nullptr
 

Friends

class QQmlRefCounted< QQmlTypePrivate >
 

Additional Inherited Members

- Protected Member Functions inherited from QQmlRefCounted< QQmlTypePrivate >
 ~QQmlRefCounted ()
 

Detailed Description

Definition at line 29 of file qqmltype_p_p.h.

Constructor & Destructor Documentation

◆ QQmlTypePrivate()

QT_BEGIN_NAMESPACE QQmlTypePrivate::QQmlTypePrivate ( QQmlType::RegistrationType  type)

Member Function Documentation

◆ attachedPropertiesBase()

const QQmlTypePrivate * QQmlTypePrivate::attachedPropertiesBase ( QQmlEnginePrivate engine) const
inline

Definition at line 75 of file qqmltype_p_p.h.

References QQmlType::CompositeType, QQmlType::CppType, d, and engine.

Referenced by QQmlType::attachedPropertiesFunction(), and QQmlType::attachedPropertiesType().

+ Here is the caller graph for this function:

◆ compositePropertyCache()

QQmlPropertyCache::ConstPtr QQmlTypePrivate::compositePropertyCache ( QQmlEnginePrivate engine) const

Definition at line 154 of file qqmltype.cpp.

References engine, isComposite(), QQmlRefPointer< T >::isNull(), Q_ASSERT, QV4::ExecutableCompilationUnit::rootPropertyCache(), and sourceUrl().

Referenced by initEnums().

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

◆ init()

◆ initEnums()

const QQmlTypePrivate::Enums * QQmlTypePrivate::initEnums ( QQmlEnginePrivate engine) const

Definition at line 255 of file qqmltype.cpp.

References baseMetaObject, cache, compositePropertyCache(), QList< T >::constFirst(), QQmlTypePrivate::ProxyMetaObjects::data, engine, init(), insertEnums(), insertEnumsFromPropertyCache(), isComposite(), QList< T >::isEmpty(), and QQmlProxyMetaObject::ProxyData::metaObject.

Referenced by QQmlType::enumValue(), QQmlType::enumValue(), QQmlType::enumValue(), QQmlType::scopedEnumIndex(), QQmlType::scopedEnumIndex(), QQmlType::scopedEnumValue(), QQmlType::scopedEnumValue(), QQmlType::scopedEnumValue(), and QQmlType::scopedEnumValue().

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

◆ insertEnums()

void QQmlTypePrivate::insertEnums ( Enums enums,
const QMetaObject metaObject 
) const

Definition at line 286 of file qqmltype.cpp.

References QSet< T >::clear(), QSet< T >::contains(), QQmlType::CppType, QQmlTypePrivate::extraData::cppTypeData, e, QStringHash< T >::end(), QQmlTypePrivate::Enums::enums, QStringHash< T >::find(), QString::fromUtf8(), QStringHash< T >::insert(), QSet< T >::insert(), insertEnums(), metaObject(), qWarning, QQmlTypePrivate::QQmlCppTypeData::registerEnumClassesUnscoped, QQmlTypePrivate::QQmlCppTypeData::registerEnumsFromRelatedTypes, regType, QQmlTypePrivate::Enums::scopedEnumIndex, QQmlTypePrivate::Enums::scopedEnums, and QList< T >::size().

Referenced by initEnums(), insertEnums(), and insertEnumsFromPropertyCache().

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

◆ insertEnumsFromPropertyCache()

void QQmlTypePrivate::insertEnumsFromPropertyCache ( Enums enums,
const QQmlPropertyCache::ConstPtr cache 
) const

Definition at line 398 of file qqmltype.cpp.

References cache, QQmlRefCount::count(), QQmlTypePrivate::Enums::enums, QStringHash< T >::insert(), insertEnums(), QQmlEnumData::name, QQmlTypePrivate::Enums::scopedEnumIndex, QQmlTypePrivate::Enums::scopedEnums, QList< T >::size(), and QQmlEnumData::values.

Referenced by initEnums().

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

◆ isComposite()

bool QQmlTypePrivate::isComposite ( ) const
inline

Definition at line 87 of file qqmltype_p_p.h.

References QQmlType::CompositeSingletonType, QQmlType::CompositeType, and regType.

Referenced by compositePropertyCache(), initEnums(), QQmlType::isComposite(), and resolveCompositeBaseType().

+ Here is the caller graph for this function:

◆ resolveCompositeBaseType()

QQmlType QQmlTypePrivate::resolveCompositeBaseType ( QQmlEnginePrivate engine) const

Definition at line 141 of file qqmltype.cpp.

References engine, isComposite(), QQmlRefPointer< T >::isNull(), mo, Q_ASSERT, QQmlMetaType::qmlType(), QV4::ExecutableCompilationUnit::rootPropertyCache(), and sourceUrl().

+ Here is the call graph for this function:

◆ setName()

void QQmlTypePrivate::setName ( const QString uri,
const QString element 
)

Definition at line 424 of file qqmltype.cpp.

References elementName, QString::isEmpty(), and module.

+ Here is the call graph for this function:

◆ sourceUrl()

Friends And Related Symbol Documentation

◆ QQmlRefCounted< QQmlTypePrivate >

friend class QQmlRefCounted< QQmlTypePrivate >
friend

Definition at line 155 of file qqmltype_p_p.h.

Member Data Documentation

◆ baseMetaObject

const QMetaObject* QQmlTypePrivate::baseMetaObject = nullptr

◆ elementName

QString QQmlTypePrivate::elementName

Definition at line 141 of file qqmltype_p_p.h.

Referenced by QQmlType::elementName(), and setName().

◆ extraData

◆ index

int QQmlTypePrivate::index = -1

Definition at line 124 of file qqmltype_p_p.h.

Referenced by QQmlType::index().

◆ listId

QMetaType QQmlTypePrivate::listId

Definition at line 143 of file qqmltype_p_p.h.

Referenced by QQmlType::qListTypeId().

◆ module

QHashedString QQmlTypePrivate::module

Definition at line 139 of file qqmltype_p_p.h.

Referenced by QQmlType::availableInVersion(), QQmlType::module(), and setName().

◆ name

QString QQmlTypePrivate::name

Definition at line 140 of file qqmltype_p_p.h.

Referenced by QQmlType::qmlTypeName().

◆ regType

◆ revision

QTypeRevision QQmlTypePrivate::revision = QTypeRevision::zero()

Definition at line 146 of file qqmltype_p_p.h.

Referenced by QQmlType::metaObjectRevision().

◆ typeId

QMetaType QQmlTypePrivate::typeId

◆ version

QTypeRevision QQmlTypePrivate::version

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