Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlJSMetaEnum Class Reference

#include <qqmljsmetatypes_p.h>

+ Collaboration diagram for QQmlJSMetaEnum:

Public Member Functions

 QQmlJSMetaEnum ()=default
 
 QQmlJSMetaEnum (QString name)
 
bool isValid () const
 
QString name () const
 
void setName (const QString &name)
 
QString alias () const
 
void setAlias (const QString &alias)
 
bool isFlag () const
 
void setIsFlag (bool isFlag)
 
bool isScoped () const
 
void setScoped (bool v)
 
void addKey (const QString &key)
 
QStringList keys () const
 
void addValue (int value)
 
QList< int > values () const
 
bool hasValues () const
 
int value (const QString &key) const
 
bool hasKey (const QString &key) const
 
QString typeName () const
 
void setTypeName (const QString &typeName)
 
QSharedPointer< const QQmlJSScopetype () const
 
void setType (const QSharedPointer< const QQmlJSScope > &type)
 

Friends

bool operator== (const QQmlJSMetaEnum &a, const QQmlJSMetaEnum &b)
 
bool operator!= (const QQmlJSMetaEnum &a, const QQmlJSMetaEnum &b)
 
size_t qHash (const QQmlJSMetaEnum &e, size_t seed=0)
 

Detailed Description

Definition at line 53 of file qqmljsmetatypes_p.h.

Constructor & Destructor Documentation

◆ QQmlJSMetaEnum() [1/2]

QQmlJSMetaEnum::QQmlJSMetaEnum ( )
default

◆ QQmlJSMetaEnum() [2/2]

QQmlJSMetaEnum::QQmlJSMetaEnum ( QString  name)
inlineexplicit

Definition at line 66 of file qqmljsmetatypes_p.h.

Member Function Documentation

◆ addKey()

void QQmlJSMetaEnum::addKey ( const QString key)
inline

Definition at line 82 of file qqmljsmetatypes_p.h.

Referenced by QQmlJSImportVisitor::visit().

+ Here is the caller graph for this function:

◆ addValue()

void QQmlJSMetaEnum::addValue ( int  value)
inline

Definition at line 85 of file qqmljsmetatypes_p.h.

References QList< T >::append().

Referenced by QQmlJSImportVisitor::visit().

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

◆ alias()

QString QQmlJSMetaEnum::alias ( ) const
inline

Definition at line 73 of file qqmljsmetatypes_p.h.

Referenced by QQmlJSCodeGenerator::generateEnumLookup(), and setAlias().

+ Here is the caller graph for this function:

◆ hasKey()

bool QQmlJSMetaEnum::hasKey ( const QString key) const
inline

Definition at line 90 of file qqmljsmetatypes_p.h.

◆ hasValues()

bool QQmlJSMetaEnum::hasValues ( ) const
inline

Definition at line 88 of file qqmljsmetatypes_p.h.

References QList< T >::isEmpty().

Referenced by QQmlJSCodeGenerator::generateEnumLookup().

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

◆ isFlag()

bool QQmlJSMetaEnum::isFlag ( ) const
inline

Definition at line 76 of file qqmljsmetatypes_p.h.

Referenced by QQmlJSCodeGenerator::generateEnumLookup(), and setIsFlag().

+ Here is the caller graph for this function:

◆ isScoped()

bool QQmlJSMetaEnum::isScoped ( ) const
inline

Definition at line 79 of file qqmljsmetatypes_p.h.

◆ isValid()

bool QQmlJSMetaEnum::isValid ( ) const
inline

Definition at line 68 of file qqmljsmetatypes_p.h.

References QString::isEmpty().

+ Here is the call graph for this function:

◆ keys()

QStringList QQmlJSMetaEnum::keys ( ) const
inline

Definition at line 83 of file qqmljsmetatypes_p.h.

◆ name()

QString QQmlJSMetaEnum::name ( ) const
inline

Definition at line 70 of file qqmljsmetatypes_p.h.

Referenced by QQmlJSScope::addOwnEnumeration(), QQmlJSCodeGenerator::generateEnumLookup(), and setName().

+ Here is the caller graph for this function:

◆ setAlias()

void QQmlJSMetaEnum::setAlias ( const QString alias)
inline

Definition at line 74 of file qqmljsmetatypes_p.h.

References alias().

+ Here is the call graph for this function:

◆ setIsFlag()

void QQmlJSMetaEnum::setIsFlag ( bool  isFlag)
inline

Definition at line 77 of file qqmljsmetatypes_p.h.

References isFlag().

+ Here is the call graph for this function:

◆ setName()

void QQmlJSMetaEnum::setName ( const QString name)
inline

Definition at line 71 of file qqmljsmetatypes_p.h.

References name().

+ Here is the call graph for this function:

◆ setScoped()

void QQmlJSMetaEnum::setScoped ( bool  v)
inline

Definition at line 80 of file qqmljsmetatypes_p.h.

◆ setType()

void QQmlJSMetaEnum::setType ( const QSharedPointer< const QQmlJSScope > &  type)
inline

Definition at line 96 of file qqmljsmetatypes_p.h.

References type().

Referenced by QQmlJSScope::resolveEnums(), and QQmlJSTypeResolver::transformed().

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

◆ setTypeName()

void QQmlJSMetaEnum::setTypeName ( const QString typeName)
inline

Definition at line 93 of file qqmljsmetatypes_p.h.

References typeName().

+ Here is the call graph for this function:

◆ type()

QSharedPointer< const QQmlJSScope > QQmlJSMetaEnum::type ( ) const
inline

Definition at line 95 of file qqmljsmetatypes_p.h.

Referenced by QQmlJSTypeResolver::containedType(), QQmlJSTypeResolver::registerContains(), setType(), and QQmlJSTypeResolver::transformed().

+ Here is the caller graph for this function:

◆ typeName()

QString QQmlJSMetaEnum::typeName ( ) const
inline

Definition at line 92 of file qqmljsmetatypes_p.h.

Referenced by setTypeName().

+ Here is the caller graph for this function:

◆ value()

int QQmlJSMetaEnum::value ( const QString key) const
inline

Definition at line 89 of file qqmljsmetatypes_p.h.

References QList< T >::value().

Referenced by QQmlJSCodeGenerator::generateEnumLookup(), and QQmlJSScope::ownEnumeration().

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

◆ values()

QList< int > QQmlJSMetaEnum::values ( ) const
inline

Definition at line 86 of file qqmljsmetatypes_p.h.

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const QQmlJSMetaEnum a,
const QQmlJSMetaEnum b 
)
friend

Definition at line 108 of file qqmljsmetatypes_p.h.

◆ operator==

bool operator== ( const QQmlJSMetaEnum a,
const QQmlJSMetaEnum b 
)
friend

Definition at line 98 of file qqmljsmetatypes_p.h.

◆ qHash

size_t qHash ( const QQmlJSMetaEnum e,
size_t  seed = 0 
)
friend

Definition at line 113 of file qqmljsmetatypes_p.h.


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