MCPcopy Create free account
hub / github.com/MITK/MITK / rowCount

Method rowCount

Modules/QtWidgets/src/QmitkDataStorageSimpleTreeModel.cpp:176–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176int QmitkDataStorageSimpleTreeModel::rowCount(const QModelIndex &parent) const
177{
178 TreeItem *parentTreeItem = this->TreeItemFromIndex(parent);
179 if (parentTreeItem)
180 return parentTreeItem->GetChildCount();
181 else
182 return 0;
183}
184
185int QmitkDataStorageSimpleTreeModel::columnCount(const QModelIndex &/*parent*/) const
186{

Callers

nothing calls this directly

Calls 2

TreeItemFromIndexMethod · 0.95
GetChildCountMethod · 0.45

Tested by

no test coverage detected