13 #ifndef QmitkInitialValuesTypeDelegate_h
14 #define QmitkInitialValuesTypeDelegate_h
17 #include <QStyledItemDelegate>
56 QWidget*
createEditor(QWidget* parent,
const QStyleOptionViewItem& option
57 ,
const QModelIndex& index)
const override;
64 void setEditorData(QWidget* editor,
const QModelIndex& index)
const override;
72 void setModelData(QWidget* editor, QAbstractItemModel* model,
const QModelIndex& index)
const override;
#define MITKMODELFITUI_EXPORT
Item delegate for rendering and editing the type of an initial parameter value.
void setEditorData(QWidget *editor, const QModelIndex &index) const override
Sets the combo box selection to match the current model data.
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
Transfers the selected type index from the combo box back to the model.
QmitkInitialValuesTypeDelegate(QObject *parent=nullptr)
Constructs a QmitkInitialValuesTypeDelegate.
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Creates a QComboBox editor with "scalar" and "image" options.