Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkSimpleBarrierTypeDelegate Class Reference

An item delegate for rendering and editing the type of a simple barrier constraint. It assumes that the type is encoded as int. 0: lower border, 1: upper border. More...

#include <QmitkSimpleBarrierTypeDelegate.h>

Inheritance diagram for QmitkSimpleBarrierTypeDelegate:
Collaboration diagram for QmitkSimpleBarrierTypeDelegate:

Public Member Functions

 QmitkSimpleBarrierTypeDelegate (QObject *parent=nullptr)
 
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

An item delegate for rendering and editing the type of a simple barrier constraint. It assumes that the type is encoded as int. 0: lower border, 1: upper border.

Definition at line 25 of file QmitkSimpleBarrierTypeDelegate.h.

Constructor & Destructor Documentation

◆ QmitkSimpleBarrierTypeDelegate()

QmitkSimpleBarrierTypeDelegate::QmitkSimpleBarrierTypeDelegate ( QObject *  parent = nullptr)

Member Function Documentation

◆ createEditor()

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

◆ setEditorData()

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

◆ setModelData()

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

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