17 #ifndef QmitkPropertyItemDelegate_h
18 #define QmitkPropertyItemDelegate_h
22 #include <QStyledItemDelegate>
46 void OnButtonClicked();
47 void OnLineEditEditingFinished();
51 QLineEdit *m_LineEdit;
52 QToolButton *m_Button;
69 QComboBox *m_ComboBox;
80 QWidget *createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
81 void paint(QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index)
const override;
82 void setEditorData(QWidget *editor,
const QModelIndex &index)
const override;
83 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const override;
87 void OnComboBoxCurrentIndexChanged(
int index);
88 void OnSpinBoxEditingFinished();
92 std::string GetPropertyName(
const QModelIndex &index)
const;
void resizeEvent(QResizeEvent *event) override
QmitkComboBoxListView(QComboBox *comboBox=NULL)
Key-value list holding instances of BaseProperty.
QStyleOptionViewItem viewOptions() const override
void paintEvent(QPaintEvent *event) override