An item delegate for rendering and editing properties that can be toggled (e.g. visibility).
More...
#include <QmitkLabelToggleItemDelegate.h>
|
| | QmitkLabelToggleItemDelegate (const QIcon &onIcon, const QIcon &offIcon, 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 |
| |
| QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
| |
An item delegate for rendering and editing properties that can be toggled (e.g. visibility).
Definition at line 25 of file QmitkLabelToggleItemDelegate.h.
◆ QmitkLabelToggleItemDelegate()
| QmitkLabelToggleItemDelegate::QmitkLabelToggleItemDelegate |
( |
const QIcon & |
onIcon, |
|
|
const QIcon & |
offIcon, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
Creates a new PropertyDelegate.
◆ editorEvent()
| bool QmitkLabelToggleItemDelegate::editorEvent |
( |
QEvent * |
event, |
|
|
QAbstractItemModel * |
model, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
override |
◆ paint()
| void QmitkLabelToggleItemDelegate::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
override |
◆ sizeHint()
| QSize QmitkLabelToggleItemDelegate::sizeHint |
( |
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
override |
◆ m_OffIcon
| QIcon QmitkLabelToggleItemDelegate::m_OffIcon |
|
protected |
◆ m_OnIcon
| QIcon QmitkLabelToggleItemDelegate::m_OnIcon |
|
protected |
The documentation for this class was generated from the following file: