![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qdesigner_utils_p.h>
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 QString & | enumName () const |
| const QString & | scope () const |
| const QString & | separator () const |
| const QStringList & | keys () const |
| const KeyToValueMap & | keyToValueMap () const |
Protected Member Functions | |
| void | appendQualifiedName (const QString &key, SerializationMode sm, QString &target) const |
Definition at line 63 of file qdesigner_utils_p.h.
| using qdesigner_internal::MetaEnum< IntType >::KeyToValueMap = std::map<QString, IntType, std::less<>> |
Definition at line 69 of file qdesigner_utils_p.h.
| enum qdesigner_internal::MetaEnum::SerializationMode |
| Enumerator | |
|---|---|
| FullyQualified | |
| Qualified | |
Definition at line 66 of file qdesigner_utils_p.h.
| 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 MetaEnum().
Referenced by MetaEnum().
|
default |
| void qdesigner_internal::MetaEnum< IntType >::addKey | ( | IntType | value, |
| const QString & | name ) |
Definition at line 106 of file qdesigner_utils_p.h.
|
protected |
Definition at line 141 of file qdesigner_utils_p.h.
|
inline |
Definition at line 79 of file qdesigner_utils_p.h.
|
inline |
Definition at line 83 of file qdesigner_utils_p.h.
| IntType qdesigner_internal::MetaEnum< IntType >::keyToValue | ( | QStringView | key, |
| bool * | ok = nullptr ) const |
Definition at line 128 of file qdesigner_utils_p.h.
|
inline |
Definition at line 84 of file qdesigner_utils_p.h.
|
inline |
Definition at line 80 of file qdesigner_utils_p.h.
|
inline |
Definition at line 81 of file qdesigner_utils_p.h.
| QString qdesigner_internal::MetaEnum< IntType >::valueToKey | ( | IntType | value, |
| bool * | ok = nullptr ) const |
Definition at line 113 of file qdesigner_utils_p.h.