Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkPatientTableHeaderView Class Reference

#include <QmitkPatientTableHeaderView.h>

Inheritance diagram for QmitkPatientTableHeaderView:
Collaboration diagram for QmitkPatientTableHeaderView:

Public Types

enum  HeaderDataModelRoles { HorizontalHeaderDataRole }
 

Public Member Functions

 QmitkPatientTableHeaderView (QWidget *parent=nullptr)
 
 ~QmitkPatientTableHeaderView () override
 
void setModel (QAbstractItemModel *model) override
 Set the model of the table view of this header view. This model returns a standard item model for the 'HorizontalHeaderDataRole'-role. The header model has been previously filled with header data. This function is overwritten from QHeaderView. More...
 

Protected Member Functions

void paintSection (QPainter *painter, const QRect &rect, int logicalIndex) const override
 Paint each header using 'PaintHeader'. This function is overwritten from QHeaderView. More...
 
QSize sectionSizeFromContents (int logicalIndex) const override
 Get the section size by retrieving the text content. The section size is dependent on the child and parent headers. This function is overwritten from QHeaderView. More...
 

Detailed Description

Definition at line 27 of file QmitkPatientTableHeaderView.h.

Member Enumeration Documentation

◆ HeaderDataModelRoles

Enumerator
HorizontalHeaderDataRole 

Definition at line 36 of file QmitkPatientTableHeaderView.h.

Constructor & Destructor Documentation

◆ QmitkPatientTableHeaderView()

QmitkPatientTableHeaderView::QmitkPatientTableHeaderView ( QWidget *  parent = nullptr)

Definition at line 20 of file QmitkPatientTableHeaderView.cpp.

◆ ~QmitkPatientTableHeaderView()

QmitkPatientTableHeaderView::~QmitkPatientTableHeaderView ( )
override

Definition at line 27 of file QmitkPatientTableHeaderView.cpp.

Member Function Documentation

◆ paintSection()

void QmitkPatientTableHeaderView::paintSection ( QPainter *  painter,
const QRect &  rect,
int  logicalIndex 
) const
overrideprotected

Paint each header using 'PaintHeader'. This function is overwritten from QHeaderView.

Definition at line 44 of file QmitkPatientTableHeaderView.cpp.

◆ sectionSizeFromContents()

QSize QmitkPatientTableHeaderView::sectionSizeFromContents ( int  logicalIndex) const
overrideprotected

Get the section size by retrieving the text content. The section size is dependent on the child and parent headers. This function is overwritten from QHeaderView.

Definition at line 63 of file QmitkPatientTableHeaderView.cpp.

◆ setModel()

void QmitkPatientTableHeaderView::setModel ( QAbstractItemModel *  model)
override

Set the model of the table view of this header view. This model returns a standard item model for the 'HorizontalHeaderDataRole'-role. The header model has been previously filled with header data. This function is overwritten from QHeaderView.

Definition at line 32 of file QmitkPatientTableHeaderView.cpp.

References HorizontalHeaderDataRole.


The documentation for this class was generated from the following files: