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

Method rowCount

Modules/ImageStatisticsUI/src/QmitkImageStatisticsTreeModel.cpp:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57int QmitkImageStatisticsTreeModel::rowCount(const QModelIndex &parent) const
58{
59 QmitkImageStatisticsTreeItem *parentItem;
60 if (parent.column() > 0)
61 return 0;
62
63 if (!parent.isValid())
64 parentItem = m_RootItem.get();
65 else
66 parentItem = static_cast<QmitkImageStatisticsTreeItem *>(parent.internalPointer());
67
68 return parentItem->childCount();
69}
70
71QVariant QmitkImageStatisticsTreeModel::data(const QModelIndex &index, int role) const
72{

Callers 1

IterateMethod · 0.45

Calls 1

childCountMethod · 0.45

Tested by

no test coverage detected