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

Method rowCount

Modules/QtWidgetsExt/src/QmitkPointListModel.cpp:138–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138int QmitkPointListModel::rowCount(const QModelIndex &) const
139{
140 mitk::PointSet::Pointer pointSet = this->CheckForPointSetInNode(m_PointSetNode);
141 if (pointSet.IsNotNull())
142 {
143 return pointSet->GetSize(m_TimeStep);
144 }
145 else
146 {
147 return 0;
148 }
149}
150
151QVariant QmitkPointListModel::data(const QModelIndex &index, int role) const
152{

Callers

nothing calls this directly

Calls 3

IsNotNullMethod · 0.80
GetSizeMethod · 0.45

Tested by

no test coverage detected