Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkPropertyDelegate Class Reference

Own includes. More...

#include <QmitkPropertyDelegate.h>

Inheritance diagram for QmitkPropertyDelegate:
Collaboration diagram for QmitkPropertyDelegate:

Public Member Functions

 QmitkPropertyDelegate (QObject *parent=nullptr)
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void setEditorData (QWidget *editor, const QModelIndex &index) const override
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 Fit an editor to some geometry (overwritten from QItemDelegate) More...
 

Protected Member Functions

bool eventFilter (QObject *o, QEvent *e) override
 

Detailed Description

Own includes.

Toolkit includes.

Toolkit includes. Forward declarations.

An item delegate for rendering and editing mitk::Properties in a QTableView.

See also
QmitkPropertiesTableModel

An item delegate for rendering and editing mitk::Properties in a QTableView.

See also
QmitkPropertiesTableModel

Forward declarations.

An item delegate for rendering and editing mitk::Properties in a QTableView.

See also
QmitkPropertiesTableModel

Definition at line 32 of file QmitkPropertyDelegate.h.

Constructor & Destructor Documentation

◆ QmitkPropertyDelegate()

QmitkPropertyDelegate::QmitkPropertyDelegate ( QObject *  parent = nullptr)

Creates a new PropertyDelegate.

Member Function Documentation

◆ createEditor()

QWidget* QmitkPropertyDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Create an editor for a specific property (overwritten from QItemDelegate)

◆ eventFilter()

bool QmitkPropertyDelegate::eventFilter ( QObject *  o,
QEvent *  e 
)
overrideprotected

◆ paint()

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

Renders a specific property (overwritten from QItemDelegate)

◆ setEditorData()

void QmitkPropertyDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
override

Create an editor for a specific property (overwritten from QItemDelegate)

◆ setModelData()

void QmitkPropertyDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
override

When the user accepts input this func commits the data to the model (overwritten from QItemDelegate)

◆ updateEditorGeometry()

void QmitkPropertyDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Fit an editor to some geometry (overwritten from QItemDelegate)


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