13 #ifndef QmitkXnatTreeModel_h
14 #define QmitkXnatTreeModel_h
17 #include <ctkXnatTreeModel.h>
34 QVariant data(
const QModelIndex &index,
int role)
const override;
37 const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent)
override;
39 using QAbstractItemModel::supportedDropActions;
40 virtual Qt::DropActions supportedDropActions();
42 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
44 ctkXnatObject *GetXnatObjectFromUrl(
const QString &);
46 void fetchMore(
const QModelIndex &index)
override;
48 QModelIndexList match(
49 const QModelIndex &start,
int role,
const QVariant &value,
int hits, Qt::MatchFlags flags)
const override;
52 void Error(
const QModelIndex &idx);
53 void ResourceDropped(
const QList<mitk::DataNode *> &, ctkXnatObject *,
const QModelIndex &);
56 ctkXnatObject *InternalGetXnatObjectFromUrl(
const QString &xnatObjectType,
const QString &url, ctkXnatObject *parent);