MCPcopy Create free account
hub / github.com/KDAB/GammaRay / registerEnum

Method registerEnum

core/enumrepositoryserver.cpp:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void EnumRepositoryServer::registerEnum(int metaTypeId, const char *name, const QVector<GammaRay::EnumDefinitionElement> &elems, bool flag)
93{
94 Q_ASSERT(s_instance);
95 Q_ASSERT(name);
96 Q_ASSERT(!elems.isEmpty());
97
98 EnumDefinition def(s_instance->m_nextId++, name);
99 def.setIsFlag(flag);
100 def.setElements(elems);
101 s_instance->addDefinition(def);
102 s_instance->m_typeIdToIdMap.insert(metaTypeId, def.id());
103}

Callers

nothing calls this directly

Calls 6

setIsFlagMethod · 0.80
setElementsMethod · 0.80
addDefinitionMethod · 0.80
isEmptyMethod · 0.45
insertMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected