Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkLabelColorItemDelegate Class Reference

An item delegate for rendering and editing label color in a QmitkMultiLabelTreeView. More...

#include <QmitkLabelColorItemDelegate.h>

Inheritance diagram for QmitkLabelColorItemDelegate:
Collaboration diagram for QmitkLabelColorItemDelegate:

Public Member Functions

 QmitkLabelColorItemDelegate (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 label color in a QmitkMultiLabelTreeView.

Definition at line 24 of file QmitkLabelColorItemDelegate.h.

Constructor & Destructor Documentation

◆ QmitkLabelColorItemDelegate()

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

Creates a new PropertyDelegate.

Member Function Documentation

◆ editorEvent()

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

◆ paint()

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

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