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
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
 
QUrl sourceUrl () const
 
const QQmlTypePrivateattachedPropertiesBase (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 QMetaObjectmetaObject () const
 
const QMetaObjectmetaObjectForValueType () 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 QMetaObjectbaseMetaObject = nullptr
 

Friends

class QQmlRefCounted< QQmlTypePrivate >
 

Additional Inherited Members

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

Detailed Description

Definition at line 32 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, engine, extraData, and resolveCompositeBaseType().

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

+ Here is the call graph for this function:
+ 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(), Q_ASSERT, QV4::CompiledData::CompilationUnit::rootPropertyCache(), and sourceUrl().

+ Here is the call graph for this function:

◆ compositeQmlType()

static QQmlType QQmlTypePrivate::compositeQmlType ( const QQmlRefPointer< QV4::CompiledData::CompilationUnit > & unit,
QQmlTypeLoader * typeLoader,
const QString & type )
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().

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

◆ enumValue()

template<typename String >
static int QQmlTypePrivate::enumValue ( const QQmlRefPointer< const QQmlTypePrivate > & d,
QQmlEnginePrivate * engine,
const String & name,
bool * ok )
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().

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

◆ init()

◆ 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(), QQmlType::isComposite(), and resolveCompositeBaseType().

+ Here is the caller graph for this function:

◆ isValueType()

bool QQmlTypePrivate::isValueType ( ) const
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().

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

◆ metaObject()

const QMetaObject * QQmlTypePrivate::metaObject ( ) const
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().

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

◆ metaObjectForValueType()

const QMetaObject * QQmlTypePrivate::metaObjectForValueType ( ) const
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().

+ Here is the call graph for this function:
+ 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(), mo, Q_ASSERT, QQmlMetaType::qmlType(), QV4::CompiledData::CompilationUnit::rootPropertyCache(), and sourceUrl().

Referenced by attachedPropertiesBase().

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

◆ scopedEnumIndex()

template<typename String >
static int QQmlTypePrivate::scopedEnumIndex ( const QQmlRefPointer< const QQmlTypePrivate > & d,
QQmlEnginePrivate * engine,
const String & name,
bool * ok )
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().

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

◆ scopedEnumValue() [1/2]

template<typename String1 , typename String2 >
static int QQmlTypePrivate::scopedEnumValue ( const QQmlRefPointer< const QQmlTypePrivate > & d,
QQmlEnginePrivate * engine,
const String1 & scopedEnumName,
const String2 & name,
bool * ok )
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().

+ Here is the call graph for this function:

◆ scopedEnumValue() [2/2]

template<typename String >
static int QQmlTypePrivate::scopedEnumValue ( const QQmlRefPointer< const QQmlTypePrivate > & d,
QQmlEnginePrivate * engine,
int index,
const String & name,
bool * ok )
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().

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

◆ setName()

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

Definition at line 444 of file qqmltype.cpp.

References elementName, and QString::isEmpty().

+ Here is the call graph for this function:

◆ sourceUrl()

QUrl QQmlTypePrivate::sourceUrl ( ) const
inline

Friends And Related Symbol Documentation

◆ QQmlRefCounted< QQmlTypePrivate >

friend class QQmlRefCounted< QQmlTypePrivate >
friend

Definition at line 262 of file qqmltype_p_p.h.

Member Data Documentation

◆ baseMetaObject

◆ elementName

QString QQmlTypePrivate::elementName

Definition at line 146 of file qqmltype_p_p.h.

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

◆ extraData

◆ index

int QQmlTypePrivate::index = -1

Definition at line 129 of file qqmltype_p_p.h.

Referenced by QQmlType::index().

◆ listId

QMetaType QQmlTypePrivate::listId

Definition at line 148 of file qqmltype_p_p.h.

Referenced by QQmlType::qListTypeId().

◆ name

QHashedString QString QQmlTypePrivate::name

Definition at line 145 of file qqmltype_p_p.h.

Referenced by QQmlType::qmlTypeName().

◆ regType

◆ revision

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

Definition at line 151 of file qqmltype_p_p.h.

Referenced by QQmlType::metaObjectRevision().

◆ typeId

QMetaType QQmlTypePrivate::typeId

Definition at line 147 of file qqmltype_p_p.h.

Referenced by isValueType(), QQmlMetaType::listValueType(), and QQmlType::typeId().

◆ version

QTypeRevision QQmlTypePrivate::version

Definition at line 150 of file qqmltype_p_p.h.

Referenced by QQmlType::availableInVersion(), and QQmlType::version().


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