MCPcopy Create free account
hub / github.com/KDE/kdevelop / rowCount

Method rowCount

kdevplatform/language/classmodel/classmodel.cpp:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87int ClassModel::rowCount(const QModelIndex& parent) const
88{
89 Node* node = m_topNode;
90
91 if (parent.isValid())
92 node = static_cast<Node*>(parent.internalPointer());
93
94 return node->children().size();
95}
96
97QVariant ClassModel::data(const QModelIndex& index, int role) const
98{

Callers

nothing calls this directly

Calls 3

isValidMethod · 0.45
sizeMethod · 0.45
childrenMethod · 0.45

Tested by

no test coverage detected