13 #ifndef QmitkPropertyItemDelegate_h
14 #define QmitkPropertyItemDelegate_h
18 #include <QStyledItemDelegate>
42 void OnButtonClicked();
43 void OnLineEditEditingFinished();
47 QLineEdit *m_LineEdit;
48 QToolButton *m_Button;
65 QComboBox *m_ComboBox;
76 QWidget *createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
77 void paint(QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
78 void setEditorData(QWidget *editor,
const QModelIndex &index)
const override;
79 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const override;
83 void OnComboBoxCurrentIndexChanged(
int index);
84 void OnSpinBoxEditingFinished();
88 std::string GetPropertyName(
const QModelIndex &index)
const;