13 #ifndef QmitkSimpleBarrierTypeDelegate_h
14 #define QmitkSimpleBarrierTypeDelegate_h
17 #include <QStyledItemDelegate>
55 QWidget*
createEditor(QWidget* parent,
const QStyleOptionViewItem& option
56 ,
const QModelIndex& index)
const override;
63 void setEditorData(QWidget* editor,
const QModelIndex& index)
const override;
71 void setModelData(QWidget* editor, QAbstractItemModel* model,
const QModelIndex& index)
const override;
#define MITKMODELFITUI_EXPORT
Item delegate for rendering and editing the type of a simple barrier constraint.
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
Transfers the selected constraint type index from the combo box back to the model.
void setEditorData(QWidget *editor, const QModelIndex &index) const override
Sets the combo box selection to match the current model data.
QmitkSimpleBarrierTypeDelegate(QObject *parent=nullptr)
Constructs a QmitkSimpleBarrierTypeDelegate.
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Creates a QComboBox editor with "lower" and "upper" options.