13 #ifndef QmitkPatientTableHeaderView_h
14 #define QmitkPatientTableHeaderView_h
20 #include <QStandardItemModel>
21 #include <QHeaderView>
38 HorizontalHeaderDataRole = Qt::UserRole
47 void setModel(QAbstractItemModel* model)
override;
55 void paintSection(QPainter* painter,
const QRect& rect,
int logicalIndex)
const override;
61 QSize sectionSizeFromContents(
int logicalIndex)
const override;
65 int PaintHeader(QPainter* painter,
const QModelIndex& currentIndex,
int logicalIndex,
const QRect& sectionRect,
int top)
const;
66 QSize HeaderSize(
const QModelIndex& index)
const;
67 int CurrentHeaderLeft(
const QModelIndex& currentIndex,
const QModelIndex& headerIndex,
int sectionIndex,
int left)
const;
68 int CurrentHeaderWidth(
const QModelIndex& currentIndex,
const QModelIndex& headerIndex,
int sectionIndex)
const;
70 QModelIndexList ParentIndexList(QModelIndex index)
const;
71 QModelIndex HeaderIndex(
int sectionIndex)
const;
72 QModelIndex FindHeader(
const QModelIndex& currentIndex,
int sectionIndex,
int& currentHeaderIndex)
const;
73 QModelIndexList ListHeader(
const QModelIndex& currentIndex)
const;
75 QStandardItemModel* m_HeaderModel;