MCPcopy Create free account
hub / github.com/aldelaro5/dolphin-memory-engine / addStruct

Method addStruct

Source/GUI/StructEditor/StructSelectModel.cpp:382–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382StructTreeNode* StructSelectModel::addStruct(const QString& name, const QModelIndex& referenceIndex,
383 StructDef* structDef)
384{
385 if (structDef == nullptr)
386 structDef = new StructDef(name);
387 StructTreeNode* newNode = new StructTreeNode(structDef, m_rootNode, false, name);
388 addNodes({newNode}, referenceIndex);
389 return newNode;
390}
391
392void StructSelectModel::deleteNode(const QModelIndex& index)
393{

Callers 2

onAddStructMethod · 0.80
onDuplicateStructMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected