21 #ifndef __DICOMModel_h 22 #define __DICOMModel_h 24 #include "org_custusx_dicom_Export.h" 27 #include <QAbstractItemModel> 29 #include <QSharedPointer> 30 #include <QStringList> 31 class ctkDICOMDatabase;
36 class DICOMModelPrivate;
41 :
public QAbstractItemModel
44 typedef QAbstractItemModel Superclass;
48 UIDRole = Qt::UserRole,
64 void setDatabase(QSharedPointer<ctkDICOMDatabase> dataBase);
70 virtual bool canFetchMore (
const QModelIndex & parent )
const;
71 virtual int columnCount (
const QModelIndex & parent = QModelIndex() )
const;
72 virtual QVariant data (
const QModelIndex & index,
int role = Qt::DisplayRole )
const;
73 virtual void fetchMore (
const QModelIndex & parent );
77 virtual bool hasChildren (
const QModelIndex & parent = QModelIndex() )
const;
78 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
79 virtual QModelIndex index (
int row,
int column,
const QModelIndex & parent = QModelIndex() )
const;
80 virtual QModelIndex parent (
const QModelIndex & index )
const;
81 virtual int rowCount (
const QModelIndex & parent = QModelIndex() )
const;
84 virtual bool removeRows(
int row,
int count,
const QModelIndex& parent = QModelIndex());
88 QScopedPointer<DICOMModelPrivate>
d_ptr;
QScopedPointer< DICOMModelPrivate > d_ptr
Namespace for all CustusX production code.