TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the super enum. More...
#include <ttksuperenum.h>
Public Member Functions | |
TTKSuperEnum (const QString &value) | |
QString | keyToString (int value) const |
int | stringToKey (const QString &name) const |
Static Public Attributes | |
static constexpr int | Null = -1 |
Private Attributes | |
std::unordered_map< int, QString > | m_enumValue |
The class of the super enum.
Definition at line 28 of file ttksuperenum.h.
TTKSuperEnum::TTKSuperEnum | ( | const QString & | value | ) |
Object constructor.
Definition at line 5 of file ttksuperenum.cpp.
References m_enumValue, Null, and qAsConst.
QString TTKSuperEnum::keyToString | ( | int | value | ) | const |
Map key int to string.
Definition at line 26 of file ttksuperenum.cpp.
References m_enumValue, and Null.
Map key string to int.
Definition at line 37 of file ttksuperenum.cpp.
References m_enumValue, Null, and qAsConst.
|
private |
Definition at line 49 of file ttksuperenum.h.
Referenced by keyToString(), stringToKey(), and TTKSuperEnum().
|
static |
Definition at line 31 of file ttksuperenum.h.
Referenced by keyToString(), stringToKey(), and TTKSuperEnum().