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
qdesigner_internal::MetaEnum< IntType > Class Template Reference

#include <qdesigner_utils_p.h>

+ Collaboration diagram for qdesigner_internal::MetaEnum< IntType >:

Public Types

enum  SerializationMode { FullyQualified , Qualified }
 
using KeyToValueMap = std::map<QString, IntType, std::less<>>
 

Public Member Functions

 MetaEnum (const QString &enumName, const QString &scope, const QString &separator)
 
 MetaEnum ()=default
 
void addKey (IntType value, const QString &name)
 
QString valueToKey (IntType value, bool *ok=nullptr) const
 
IntType keyToValue (QStringView key, bool *ok=nullptr) const
 
const QStringenumName () const
 
const QStringscope () const
 
const QStringseparator () const
 
const QStringListkeys () const
 
const KeyToValueMapkeyToValueMap () const
 

Protected Member Functions

void appendQualifiedName (const QString &key, SerializationMode sm, QString &target) const
 

Detailed Description

template<class IntType>
class qdesigner_internal::MetaEnum< IntType >

Definition at line 63 of file qdesigner_utils_p.h.

Member Typedef Documentation

◆ KeyToValueMap

template<class IntType >
using qdesigner_internal::MetaEnum< IntType >::KeyToValueMap = std::map<QString, IntType, std::less<>>

Definition at line 69 of file qdesigner_utils_p.h.

Member Enumeration Documentation

◆ SerializationMode

template<class IntType >
enum qdesigner_internal::MetaEnum::SerializationMode
Enumerator
FullyQualified 
Qualified 

Definition at line 66 of file qdesigner_utils_p.h.

Constructor & Destructor Documentation

◆ MetaEnum() [1/2]

template<class IntType >
qdesigner_internal::MetaEnum< IntType >::MetaEnum ( const QString & enumName,
const QString & scope,
const QString & separator )

Definition at line 98 of file qdesigner_utils_p.h.

References qdesigner_internal::MetaEnum< IntType >::MetaEnum().

Referenced by qdesigner_internal::MetaEnum< IntType >::MetaEnum().

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

◆ MetaEnum() [2/2]

template<class IntType >
qdesigner_internal::MetaEnum< IntType >::MetaEnum ( )
default

Member Function Documentation

◆ addKey()

template<class IntType >
void qdesigner_internal::MetaEnum< IntType >::addKey ( IntType value,
const QString & name )

Definition at line 106 of file qdesigner_utils_p.h.

◆ appendQualifiedName()

template<class IntType >
void qdesigner_internal::MetaEnum< IntType >::appendQualifiedName ( const QString & key,
SerializationMode sm,
QString & target ) const
protected

Definition at line 141 of file qdesigner_utils_p.h.

◆ enumName()

template<class IntType >
const QString & qdesigner_internal::MetaEnum< IntType >::enumName ( ) const
inline

Definition at line 79 of file qdesigner_utils_p.h.

◆ keys()

template<class IntType >
const QStringList & qdesigner_internal::MetaEnum< IntType >::keys ( ) const
inline

Definition at line 83 of file qdesigner_utils_p.h.

◆ keyToValue()

template<class IntType >
IntType qdesigner_internal::MetaEnum< IntType >::keyToValue ( QStringView key,
bool * ok = nullptr ) const

Definition at line 128 of file qdesigner_utils_p.h.

◆ keyToValueMap()

template<class IntType >
const KeyToValueMap & qdesigner_internal::MetaEnum< IntType >::keyToValueMap ( ) const
inline

Definition at line 84 of file qdesigner_utils_p.h.

◆ scope()

template<class IntType >
const QString & qdesigner_internal::MetaEnum< IntType >::scope ( ) const
inline

Definition at line 80 of file qdesigner_utils_p.h.

◆ separator()

template<class IntType >
const QString & qdesigner_internal::MetaEnum< IntType >::separator ( ) const
inline

Definition at line 81 of file qdesigner_utils_p.h.

◆ valueToKey()

template<class IntType >
QString qdesigner_internal::MetaEnum< IntType >::valueToKey ( IntType value,
bool * ok = nullptr ) const

Definition at line 113 of file qdesigner_utils_p.h.


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