Medical Imaging Interaction Toolkit  2023.12.00
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)

◆ ~QmitkPatientTableHeaderView()

QmitkPatientTableHeaderView::~QmitkPatientTableHeaderView ( )
override

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.

◆ 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.

◆ 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.


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