13 #ifndef QmitkDataStorageSimpleTreeModel_h
14 #define QmitkDataStorageSimpleTreeModel_h
67 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const override;
68 QModelIndex parent(
const QModelIndex &child)
const override;
70 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
71 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
73 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
75 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole)
override;
77 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
78 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
84 void UpdateModelData();
89 TreeItem *TreeItemFromIndex(
const QModelIndex &index)
const;
90 QModelIndex IndexFromTreeItem(
TreeItem *item)
const;
98 std::list<const TreeItem*> m_TreeItems;