17 #ifndef QMITKXNATTREEMODEL_H
18 #define QMITKXNATTREEMODEL_H
21 #include <ctkXnatTreeModel.h>
38 virtual QVariant data(
const QModelIndex &index,
int role)
const;
40 virtual bool dropMimeData(
41 const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent);
43 using QAbstractItemModel::supportedDropActions;
44 virtual Qt::DropActions supportedDropActions();
46 virtual Qt::ItemFlags flags(
const QModelIndex &index)
const;
48 ctkXnatObject *GetXnatObjectFromUrl(
const QString &);
50 void fetchMore(
const QModelIndex &index)
override;
52 QModelIndexList match(
53 const QModelIndex &start,
int role,
const QVariant &value,
int hits, Qt::MatchFlags flags)
const override;
56 void Error(
const QModelIndex &idx);
57 void ResourceDropped(
const QList<mitk::DataNode *> &, ctkXnatObject *,
const QModelIndex &);
60 ctkXnatObject *InternalGetXnatObjectFromUrl(
const QString &xnatObjectType,
const QString &url, ctkXnatObject *parent);
63 #endif // QMITKXNATTREEMODEL_H
DataCollection - Class to facilitate loading/accessing structured data.