Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkSimpleBarrierParametersDelegate Class Reference

Toolkit includes. More...

#include <QmitkSimpleBarrierParametersDelegate.h>

Inheritance diagram for QmitkSimpleBarrierParametersDelegate:
Collaboration diagram for QmitkSimpleBarrierParametersDelegate:

Public Member Functions

 QmitkSimpleBarrierParametersDelegate (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
 

Detailed Description

Toolkit includes.

An item delegate for rendering and editing the parameters relevant for a barrier constraint. The delegate assumes the following: 1) if the data is requested with the edit role, it gets a string list of all possible options. 2) if the data is requested with the display role it gets only a list of all currently selected options. If the data is transferred back to the model it contains all selected parameter names in a string list.

Definition at line 29 of file QmitkSimpleBarrierParametersDelegate.h.

Constructor & Destructor Documentation

◆ QmitkSimpleBarrierParametersDelegate()

QmitkSimpleBarrierParametersDelegate::QmitkSimpleBarrierParametersDelegate ( QObject *  parent = nullptr)

Member Function Documentation

◆ createEditor()

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

◆ paint()

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

◆ setEditorData()

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

◆ setModelData()

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

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