13 #ifndef QmitkPropertyDelegate_h
14 #define QmitkPropertyDelegate_h
22 #include <QStyledItemDelegate>
45 void paint(QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
50 QWidget *createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
55 void setEditorData(QWidget *editor,
const QModelIndex &index)
const override;
60 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const override;
65 void updateEditorGeometry(QWidget *editor,
66 const QStyleOptionViewItem &option,
67 const QModelIndex &index)
const override;
70 bool eventFilter(QObject *o, QEvent *e)
override;
76 void commitAndCloseEditor();
77 void showColorDialog();
78 void ComboBoxCurrentIndexChanged(
int index);
79 void SpinBoxValueChanged(
const QString &value);