Medical Imaging Interaction Toolkit  2016.11.0
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 36 of file QmitkPropertyDelegate.h.

Constructor & Destructor Documentation

QmitkPropertyDelegate::QmitkPropertyDelegate ( QObject *  parent = nullptr)

Creates a new PropertyDelegate.

Definition at line 40 of file QmitkPropertyDelegate.cpp.

Member Function Documentation

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

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

Definition at line 71 of file QmitkPropertyDelegate.cpp.

References max(), and min().

bool QmitkPropertyDelegate::eventFilter ( QObject *  o,
QEvent *  e 
)
overrideprotected
void QmitkPropertyDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Renders a specific property (overwritten from QItemDelegate)

Definition at line 44 of file QmitkPropertyDelegate.cpp.

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

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

Definition at line 168 of file QmitkPropertyDelegate.cpp.

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)

Definition at line 200 of file QmitkPropertyDelegate.cpp.

References Json::intValue.

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

Fit an editor to some geometry (overwritten from QItemDelegate)

Definition at line 267 of file QmitkPropertyDelegate.cpp.


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