Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkMapPropertyDelegate Class Reference

#include <QmitkMapPropertyDelegate.h>

Inheritance diagram for QmitkMapPropertyDelegate:
Collaboration diagram for QmitkMapPropertyDelegate:

Public Member Functions

 QmitkMapPropertyDelegate (QObject *parent=0)
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
void setEditorData (QWidget *editor, const QModelIndex &index) const
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Fit an editor to some geometry (overwritten from QItemDelegate) More...
 
 QmitkMapPropertyDelegate (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)
 
bool eventFilter (QObject *o, QEvent *e) override
 

Detailed Description

Definition at line 29 of file include/QmitkMapPropertyDelegate.h.

Constructor & Destructor Documentation

◆ QmitkMapPropertyDelegate() [1/2]

QmitkMapPropertyDelegate::QmitkMapPropertyDelegate ( QObject *  parent = 0)

Creates a new PropertyDelegate.

◆ QmitkMapPropertyDelegate() [2/2]

QmitkMapPropertyDelegate::QmitkMapPropertyDelegate ( QObject *  parent = nullptr)

Creates a new PropertyDelegate.

Member Function Documentation

◆ createEditor() [1/2]

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

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

◆ createEditor() [2/2]

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

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

◆ eventFilter() [1/2]

bool QmitkMapPropertyDelegate::eventFilter ( QObject *  o,
QEvent *  e 
)
protected

◆ eventFilter() [2/2]

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

◆ paint() [1/2]

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

Renders a specific property (overwritten from QItemDelegate)

◆ paint() [2/2]

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

Renders a specific property (overwritten from QItemDelegate)

◆ setEditorData() [1/2]

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

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

◆ setEditorData() [2/2]

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

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

◆ setModelData() [1/2]

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

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

◆ setModelData() [2/2]

void QmitkMapPropertyDelegate::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() [1/2]

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

Fit an editor to some geometry (overwritten from QItemDelegate)

◆ updateEditorGeometry() [2/2]

void QmitkMapPropertyDelegate::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: