| 55 | } |
| 56 | |
| 57 | int 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 | |
| 71 | QVariant QmitkImageStatisticsTreeModel::data(const QModelIndex &index, int role) const |
| 72 | { |