28 #include <QAbstractItemModel>
29 #include <QModelIndex>
31 #include <QStringList>
71 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const;
72 QModelIndex parent(
const QModelIndex &index)
const;
73 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
74 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
75 QVariant headerData(
int section,
Qt::Orientation orientation,
int role = Qt::DisplayRole )
const;
76 bool setHeaderData(
int section,
Qt::Orientation orientation,
const QVariant &value,
int role = Qt::EditRole);
77 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
78 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
79 Qt::ItemFlags flags(
const QModelIndex &index)
const;
93 bool addData(
DataObject * dataObject,
const QStringList &path);
102 TreeItem *getItem(
const QModelIndex &index = QModelIndex())
const;
106 #endif // TREEMODEL_H