22 #ifndef CTKPLUGINRESOURCESTREEMODEL_H
23 #define CTKPLUGINRESOURCESTREEMODEL_H
25 #include <QAbstractItemModel>
27 #include <QSharedPointer>
30 class ctkPluginResourceTreeItem;
39 QVariant
data(
const QModelIndex &
index,
int role)
const;
41 QVariant
headerData(
int section, Qt::Orientation orientation,
42 int role = Qt::DisplayRole)
const;
43 QModelIndex
index(
int row,
int column,
44 const QModelIndex &
parent = QModelIndex())
const;
51 QSharedPointer<const ctkPlugin> plugin;
52 ctkPluginResourceTreeItem* rootItem;
ctkPluginResourcesTreeModel(QSharedPointer< const ctkPlugin > plugin, QObject *parent=0)
QVariant data(const QModelIndex &index, int role) const
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
QModelIndex parent(const QModelIndex &index) const
~ctkPluginResourcesTreeModel()
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
Qt::ItemFlags flags(const QModelIndex &index) const
int rowCount(const QModelIndex &parent=QModelIndex()) const