 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
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;
56 #endif // CTKPLUGINRESOURCESTREEMODEL_H
ctkPluginResourcesTreeModel(QSharedPointer< const ctkPlugin > plugin, QObject *parent=0)
int rowCount(const QModelIndex &parent=QModelIndex()) const
~ctkPluginResourcesTreeModel()
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QModelIndex parent(const QModelIndex &index) const
QVariant data(const QModelIndex &index, int role) const
int columnCount(const QModelIndex &parent=QModelIndex()) const
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Qt::ItemFlags flags(const QModelIndex &index) const