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;
40 Qt::ItemFlags
flags(
const QModelIndex &index)
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;
45 QModelIndex
parent(
const QModelIndex &index)
const;
46 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
47 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
51 QSharedPointer<const ctkPlugin> plugin;
52 ctkPluginResourceTreeItem* rootItem;
56 #endif // CTKPLUGINRESOURCESTREEMODEL_H int rowCount(const QModelIndex &parent=QModelIndex()) const
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()
int columnCount(const QModelIndex &parent=QModelIndex()) const
Qt::ItemFlags flags(const QModelIndex &index) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
ctkPluginResourcesTreeModel(QSharedPointer< const ctkPlugin > plugin, QObject *parent=0)