An item delegate for rendering and editing dose color in a QTableView.
More...
#include <QmitkDoseColorDelegate.h>
|
| 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 |
|
An item delegate for rendering and editing dose color in a QTableView.
Definition at line 23 of file QmitkDoseColorDelegate.h.
◆ QmitkDoseColorDelegate()
QmitkDoseColorDelegate::QmitkDoseColorDelegate |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
Creates a new PropertyDelegate.
◆ 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: