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

Method rowCount

Source/GUI/StructEditor/StructSelectModel.cpp:28–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28int StructSelectModel::rowCount(const QModelIndex& parent) const
29{
30 if (parent.column() > 0)
31 return 0;
32
33 StructTreeNode* parentItem;
34 if (!parent.isValid())
35 parentItem = m_rootNode;
36 else
37 parentItem = static_cast<StructTreeNode*>(parent.internalPointer());
38
39 return static_cast<int>(parentItem->getChildren().size());
40}
41
42QVariant StructSelectModel::data(const QModelIndex& index, int role) const
43{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected