Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
An item delegate for rendering and editing dose color in a QTableView. More...
#include <QmitkDoseColorDelegate.h>
Public Member Functions | |
QmitkDoseColorDelegate (QObject *parent=0) | |
bool | editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
An item delegate for rendering and editing dose color in a QTableView.
Definition at line 27 of file QmitkDoseColorDelegate.h.
QmitkDoseColorDelegate::QmitkDoseColorDelegate | ( | QObject * | parent = 0 | ) |
Creates a new PropertyDelegate.
Definition at line 26 of file QmitkDoseColorDelegate.cpp.
bool QmitkDoseColorDelegate::editorEvent | ( | QEvent * | event, |
QAbstractItemModel * | model, | ||
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) |
Definition at line 47 of file QmitkDoseColorDelegate.cpp.
void QmitkDoseColorDelegate::paint | ( | QPainter * | painter, |
const QStyleOptionViewItem & | option, | ||
const QModelIndex & | index | ||
) | const |
Definition at line 30 of file QmitkDoseColorDelegate.cpp.