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;
101 #endif // QMITKDATASTORAGESIMPLETREEMODEL_H virtual void NodePredicateChanged()=0
virtual void DataStorageChanged()=0
virtual void NodeChanged(const mitk::DataNode *node)=0
virtual void NodeRemoved(const mitk::DataNode *node)=0
virtual void NodeAdded(const mitk::DataNode *node)=0
The 'QmitkDataStorageSimpleTreeModel' is a basic tree model, derived from the 'QmitkAbstractDataStora...
Class for nodes of the DataTree.