13 #ifndef QmitkMapPropertyDelegate_h
14 #define QmitkMapPropertyDelegate_h
17 #include <QStyledItemDelegate>
56 void paint(QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
70 QWidget *
createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
77 void setEditorData(QWidget *editor,
const QModelIndex &index)
const override;
85 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const override;
93 void updateEditorGeometry(QWidget *editor,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
102 void commitAndCloseEditor();
103 void showColorDialog();
104 void ComboBoxCurrentIndexChanged(
int index);
105 void SpinBoxValueChanged(
const QString &value);
#define MITKMATCHPOINTREGISTRATIONUI_EXPORT
Item delegate for rendering and editing MatchPoint algorithm meta-properties in a QTableView.
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Updates the editor geometry to fit the item's bounding rectangle.
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Creates an appropriate editor widget for the property at the given index.
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Paints the delegate for the given model index.
bool eventFilter(QObject *o, QEvent *e) override
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
Commits data from the editor widget back to the model.
void setEditorData(QWidget *editor, const QModelIndex &index) const override
Populates the editor widget with data from the model.
QmitkMapPropertyDelegate(QObject *parent=nullptr)
Constructs the property delegate.