17 #ifndef QmitkPropertyDelegate_h
18 #define QmitkPropertyDelegate_h
26 #include <QStyledItemDelegate>
49 void paint(QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
54 QWidget *createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
59 void setEditorData(QWidget *editor,
const QModelIndex &index)
const override;
64 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const override;
69 void updateEditorGeometry(QWidget *editor,
70 const QStyleOptionViewItem &option,
71 const QModelIndex &index)
const override;
74 bool eventFilter(QObject *o, QEvent *e)
override;
80 void commitAndCloseEditor();
81 void showColorDialog();
82 void ComboBoxCurrentIndexChanged(
int index);
83 void SpinBoxValueChanged(
const QString &value);