MCPcopy Create free account
hub / github.com/baldurk/renderdoc / rowCount

Method rowCount

qrenderdoc/Widgets/Extended/RDTreeWidget.cpp:126–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 return QModelIndex();
125 }
126 int rowCount(const QModelIndex &parent = QModelIndex()) const override
127 {
128 if(!parent.isValid())
129 return widget->m_root->childCount();
130
131 RDTreeWidgetItem *parentItem = itemForIndex(parent);
132
133 if(parentItem)
134 return parentItem->childCount();
135 return 0;
136 }
137 int columnCount(const QModelIndex &parent = QModelIndex()) const override
138 {
139 return widget->m_headers.count();

Callers 10

resizeSectionsMethod · 0.45
paintEventMethod · 0.45
contextMenuEventMethod · 0.45
expandAllInternalMethod · 0.45
collapseAllInternalMethod · 0.45
updateExpansionMethod · 0.45
applyExpansionMethod · 0.45
applyExpansionToRowMethod · 0.45
drawBranchesMethod · 0.45

Calls 3

QModelIndexClass · 0.50
isValidMethod · 0.45
childCountMethod · 0.45

Tested by

no test coverage detected