123456789101112131415161718192021 |
- #ifndef DATATABLEITEMDELEGATE_H
- #define DATATABLEITEMDELEGATE_H
- #include <QStyledItemDelegate>
- class DataTableComboDelegate : public QStyledItemDelegate
- {
- public:
- explicit DataTableComboDelegate(QObject *parent = nullptr);
- QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
- void setEditorData(QWidget *editor, const QModelIndex &index) const override;
- void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
- void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option,
- const QModelIndex &index) const override;
- };
- #endif // DATATABLEITEMDELEGATE_H
|