Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 (QQmlTypeLoader *typeLoader) const
bool isComposite () const
bool isValueType () const
QQmlType resolveCompositeBaseType (QQmlTypeLoader *typeLoader) const
QQmlPropertyCache::ConstPtr compositePropertyCache (QQmlTypeLoader *typeLoader) 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, QQmlTypeLoader *typeLoader, const String &name, bool *ok)
template<Enums::Scoping scoping, typename String>
static int enumIndex (const QQmlRefPointer< const QQmlTypePrivate > &d, QQmlTypeLoader *typeLoader, const String &name, bool *ok)
template<Enums::Scoping scoping, typename String>
static int enumValue (const QQmlRefPointer< const QQmlTypePrivate > &d, QQmlTypeLoader *typeLoader, int index, const String &name, bool *ok)
template<Enums::Scoping scoping, typename String1, typename String2>
static int enumValue (const QQmlRefPointer< const QQmlTypePrivate > &d, QQmlTypeLoader *typeLoader, const String1 &scopedEnumName, const String2 &name, bool *ok)
template<Enums::Scoping scoping>
static QString enumKey (const QQmlRefPointer< const QQmlTypePrivate > &d, QQmlTypeLoader *typeLoader, int index, int value, bool *ok)
template<Enums::Scoping scoping>
static QStringList enumKeys (const QQmlRefPointer< const QQmlTypePrivate > &d, QQmlTypeLoader *typeLoader, int index, int value, bool *ok)
static QQmlType visibleQmlTypeByName (const QQmlRefPointer< QV4::CompiledData::CompilationUnit > &unit, const QString &elementName, QQmlTypeLoader *typeLoader)
static QQmlType visibleQmlTypeByName (const QV4::ExecutableCompilationUnit *unit, int elementNameId, QQmlTypeLoader *typeLoader=nullptr)

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 34 of file qqmltype_p_p.h.

Constructor & Destructor Documentation

◆ QQmlTypePrivate()

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

Definition at line 19 of file qqmltype.cpp.

Member Function Documentation

◆ attachedPropertiesBase()

const QQmlTypePrivate * QQmlTypePrivate::attachedPropertiesBase ( QQmlTypeLoader * typeLoader) const
inline

Definition at line 86 of file qqmltype_p_p.h.

◆ compositePropertyCache()

QQmlPropertyCache::ConstPtr QQmlTypePrivate::compositePropertyCache ( QQmlTypeLoader * typeLoader) const

Definition at line 156 of file qqmltype.cpp.

◆ enumIndex()

template<Enums::Scoping scoping, typename String>
int QQmlTypePrivate::enumIndex ( const QQmlRefPointer< const QQmlTypePrivate > & d,
QQmlTypeLoader * typeLoader,
const String & name,
bool * ok )
inlinestatic

Definition at line 182 of file qqmltype_p_p.h.

◆ enumKey()

template<Enums::Scoping scoping>
QString QQmlTypePrivate::enumKey ( const QQmlRefPointer< const QQmlTypePrivate > & d,
QQmlTypeLoader * typeLoader,
int index,
int value,
bool * ok )
inlinestatic

Definition at line 243 of file qqmltype_p_p.h.

◆ enumKeys()

template<Enums::Scoping scoping>
QStringList QQmlTypePrivate::enumKeys ( const QQmlRefPointer< const QQmlTypePrivate > & d,
QQmlTypeLoader * typeLoader,
int index,
int value,
bool * ok )
inlinestatic

Definition at line 265 of file qqmltype_p_p.h.

◆ enumValue() [1/3]

template<typename String>
int QQmlTypePrivate::enumValue ( const QQmlRefPointer< const QQmlTypePrivate > & d,
QQmlTypeLoader * typeLoader,
const String & name,
bool * ok )
inlinestatic

Definition at line 170 of file qqmltype_p_p.h.

◆ enumValue() [2/3]

template<Enums::Scoping scoping, typename String1, typename String2>
int QQmlTypePrivate::enumValue ( const QQmlRefPointer< const QQmlTypePrivate > & d,
QQmlTypeLoader * typeLoader,
const String1 & scopedEnumName,
const String2 & name,
bool * ok )
inlinestatic

Definition at line 215 of file qqmltype_p_p.h.

◆ enumValue() [3/3]

template<Enums::Scoping scoping, typename String>
int QQmlTypePrivate::enumValue ( const QQmlRefPointer< const QQmlTypePrivate > & d,
QQmlTypeLoader * typeLoader,
int index,
const String & name,
bool * ok )
inlinestatic

Definition at line 197 of file qqmltype_p_p.h.

◆ init()

const QQmlTypePrivate::ProxyMetaObjects * QQmlTypePrivate::init ( ) const

Definition at line 175 of file qqmltype.cpp.

◆ isComposite()

bool QQmlTypePrivate::isComposite ( ) const
inline

Definition at line 99 of file qqmltype_p_p.h.

◆ isValueType()

bool QQmlTypePrivate::isValueType ( ) const
inline

Definition at line 104 of file qqmltype_p_p.h.

◆ metaObject()

const QMetaObject * QQmlTypePrivate::metaObject ( ) const
inline

Definition at line 288 of file qqmltype_p_p.h.

◆ metaObjectForValueType()

const QMetaObject * QQmlTypePrivate::metaObjectForValueType ( ) const
inline

Definition at line 299 of file qqmltype_p_p.h.

◆ resolveCompositeBaseType()

QQmlType QQmlTypePrivate::resolveCompositeBaseType ( QQmlTypeLoader * typeLoader) const

Definition at line 142 of file qqmltype.cpp.

◆ setName()

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

Definition at line 448 of file qqmltype.cpp.

◆ sourceUrl()

QUrl QQmlTypePrivate::sourceUrl ( ) const
inline

Definition at line 70 of file qqmltype_p_p.h.

◆ visibleQmlTypeByName() [1/2]

QQmlType QQmlTypePrivate::visibleQmlTypeByName ( const QQmlRefPointer< QV4::CompiledData::CompilationUnit > & unit,
const QString & elementName,
QQmlTypeLoader * typeLoader )
inlinestatic

Definition at line 322 of file qqmltype_p_p.h.

◆ visibleQmlTypeByName() [2/2]

QQmlType QQmlTypePrivate::visibleQmlTypeByName ( const QV4::ExecutableCompilationUnit * unit,
int elementNameId,
QQmlTypeLoader * typeLoader = nullptr )
inlinestatic

Definition at line 346 of file qqmltype_p_p.h.

◆ QQmlRefCounted< QQmlTypePrivate >

friend class QQmlRefCounted< QQmlTypePrivate >
friend

Definition at line 365 of file qqmltype_p_p.h.

Member Data Documentation

◆ baseMetaObject

const QMetaObject* QQmlTypePrivate::baseMetaObject = nullptr

Definition at line 165 of file qqmltype_p_p.h.

◆ elementName

QString QQmlTypePrivate::elementName

Definition at line 159 of file qqmltype_p_p.h.

◆ extraData

union QQmlTypePrivate::extraData QQmlTypePrivate::extraData

◆ index

int QQmlTypePrivate::index = -1

Definition at line 141 of file qqmltype_p_p.h.

◆ listId

QMetaType QQmlTypePrivate::listId

Definition at line 161 of file qqmltype_p_p.h.

◆ module

QHashedString QQmlTypePrivate::module

Definition at line 157 of file qqmltype_p_p.h.

◆ name

QString QQmlTypePrivate::name

◆ regType

QQmlType::RegistrationType QQmlTypePrivate::regType

Definition at line 162 of file qqmltype_p_p.h.

◆ revision

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

Definition at line 164 of file qqmltype_p_p.h.

◆ typeId

QMetaType QQmlTypePrivate::typeId

Definition at line 160 of file qqmltype_p_p.h.

◆ version

QTypeRevision QQmlTypePrivate::version

Definition at line 163 of file qqmltype_p_p.h.


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