12 #ifndef VIEWER_MODELPARTLIST_H
13 #define VIEWER_MODELPARTLIST_H
18 #include <QAbstractItemModel>
19 #include <QModelIndex>
54 QVariant
data(
const QModelIndex&
index,
int role)
const;
60 Qt::ItemFlags
flags(
const QModelIndex&
index)
const;
65 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
76 QModelIndex
index(
int row,
int column,
const QModelIndex&
parent)
const;
Definition: ModelPartList.h:26
ModelPartList(const QString &data, QObject *parent=NULL)
Definition: ModelPartList.cpp:13
int rowCount(const QModelIndex &parent) const
Definition: ModelPartList.cpp:102
ModelPart * getRootItem()
Definition: ModelPartList.cpp:116
QModelIndex parent(const QModelIndex &index) const
Definition: ModelPartList.cpp:88
ModelPart * rootItem
Definition: ModelPartList.h:102
int columnCount(const QModelIndex &parent) const
Definition: ModelPartList.cpp:27
QModelIndex index(int row, int column, const QModelIndex &parent) const
Definition: ModelPartList.cpp:71
QVariant data(const QModelIndex &index, int role) const
Definition: ModelPartList.cpp:34
QVariant headerData(int section, Qt::Orientation orientation, int role) const
Definition: ModelPartList.cpp:63
~ModelPartList()
Definition: ModelPartList.cpp:22
Qt::ItemFlags flags(const QModelIndex &index) const
Definition: ModelPartList.cpp:55
QModelIndex appendChild(QModelIndex &parent, const QList< QVariant > &data)
Definition: ModelPartList.cpp:122
Model Part class.
Definition: ModelPart.h:51