22 #ifndef CTKQTRESOURCESTREEMODEL_H
23 #define CTKQTRESOURCESTREEMODEL_H
25 #include <QAbstractItemModel>
28 class ctkQtResourceTreeItem;
37 QVariant
data(
const QModelIndex &
index,
int role)
const;
39 QVariant
headerData(
int section, Qt::Orientation orientation,
40 int role = Qt::DisplayRole)
const;
41 QModelIndex
index(
int row,
int column,
42 const QModelIndex &
parent = QModelIndex())
const;
49 ctkQtResourceTreeItem* rootItem;
Qt::ItemFlags flags(const QModelIndex &index) const
ctkQtResourcesTreeModel(QObject *parent=0)
~ctkQtResourcesTreeModel()
int columnCount(const QModelIndex &parent=QModelIndex()) const
int rowCount(const QModelIndex &parent=QModelIndex()) const
QVariant data(const QModelIndex &index, int role) const
QModelIndex parent(const QModelIndex &index) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const