9 const QStringList &enums = value.split(
',');
13 const int pos = data.indexOf(
'=');
16 const QString &v = data.right(data.length() - pos - 1).trimmed();
17 enumValue = v.toInt(
nullptr, (v.startsWith(
"0x") || v.startsWith(
"0X")) ? 16 : 10);
18 data = data.left(pos);
33 const auto &it = m_enumValue.find(value);
34 return it != m_enumValue.end() ? it->second :
"Invalid";
44 for(
auto &&item :
qAsConst(m_enumValue))
46 if(item.second ==
name)
static constexpr int Null
int stringToKey(const QString &name) const noexcept
QString keyToString(int value) const noexcept
TTKSuperEnum(const QString &value)
std::unordered_map< int, QString > m_enumValue