Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkDoseColorDelegate Class Reference

An item delegate for rendering and editing dose color in a QTableView. More...

#include <QmitkDoseColorDelegate.h>

Inheritance diagram for QmitkDoseColorDelegate:
Collaboration diagram for QmitkDoseColorDelegate:

Public Member Functions

 QmitkDoseColorDelegate (QObject *parent=nullptr)
 
bool editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 

Detailed Description

An item delegate for rendering and editing dose color in a QTableView.

Definition at line 23 of file QmitkDoseColorDelegate.h.

Constructor & Destructor Documentation

◆ QmitkDoseColorDelegate()

QmitkDoseColorDelegate::QmitkDoseColorDelegate ( QObject *  parent = nullptr)
explicit

Creates a new PropertyDelegate.

Member Function Documentation

◆ editorEvent()

bool QmitkDoseColorDelegate::editorEvent ( QEvent *  event,
QAbstractItemModel *  model,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
)
override

◆ paint()

void QmitkDoseColorDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

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