44 #include <QAbstractItemModel>
45 #include <QModelIndex>
61 QVariant
data(
const QModelIndex &
index,
int role)
const;
62 Qt::ItemFlags
flags(
const QModelIndex &index)
const;
63 QVariant
headerData(
int section, Qt::Orientation orientation,
64 int role = Qt::DisplayRole)
const;
65 QModelIndex
index(
int row,
int column,
66 const QModelIndex &
parent = QModelIndex())
const;
67 QModelIndex
parent(
const QModelIndex &index)
const;
68 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
69 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
[0]
Definition: treemodel.h:52
QVariant data(const QModelIndex &index, int role) const
[2]
Definition: treemodel.cpp:82
~TreeModel()
[0]
Definition: treemodel.cpp:65
TreeModel(const QString &data, QObject *parent=0)
[0]
Definition: treemodel.cpp:54
int rowCount(const QModelIndex &parent=QModelIndex()) const
[7]
Definition: treemodel.cpp:156
int columnCount(const QModelIndex &parent=QModelIndex()) const
[1]
Definition: treemodel.cpp:72
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
[4]
Definition: treemodel.cpp:107
QModelIndex parent(const QModelIndex &index) const
[6]
Definition: treemodel.cpp:140
Qt::ItemFlags flags(const QModelIndex &index) const
[3]
Definition: treemodel.cpp:97
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
[5]
Definition: treemodel.cpp:118
void setupModelData(const QStringList &lines, TreeItem *parent)
[8]
Definition: treemodel.cpp:171
[0]
Definition: treeitem.h:48