Medical Imaging Interaction Toolkit  2016.11.0
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=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...
 

Protected Member Functions

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

Detailed Description

Definition at line 33 of file Helper/QmitkMapPropertyDelegate.h.

Constructor & Destructor Documentation

QmitkMapPropertyDelegate::QmitkMapPropertyDelegate ( QObject *  parent = 0)

Creates a new PropertyDelegate.

Definition at line 40 of file Helper/QmitkMapPropertyDelegate.cpp.

QmitkMapPropertyDelegate::QmitkMapPropertyDelegate ( QObject *  parent = 0)

Creates a new PropertyDelegate.

Member Function Documentation

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

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

Definition at line 56 of file Helper/QmitkMapPropertyDelegate.cpp.

References max(), and min().

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

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

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

Definition at line 261 of file Helper/QmitkMapPropertyDelegate.cpp.

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

Renders a specific property (overwritten from QItemDelegate)

Definition at line 44 of file Helper/QmitkMapPropertyDelegate.cpp.

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

Renders a specific property (overwritten from QItemDelegate)

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

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

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

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

Definition at line 116 of file Helper/QmitkMapPropertyDelegate.cpp.

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)

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)

Definition at line 155 of file Helper/QmitkMapPropertyDelegate.cpp.

References Json::intValue.

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

Fit an editor to some geometry (overwritten from QItemDelegate)

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

Fit an editor to some geometry (overwritten from QItemDelegate)

Definition at line 229 of file Helper/QmitkMapPropertyDelegate.cpp.


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