20#ifndef LIBREPCB_EDITOR_KEYSEQUENCEDELEGATE_H
21#define LIBREPCB_EDITOR_KEYSEQUENCEDELEGATE_H
35class KeySequencesEditorWidget;
54 QWidget*
createEditor(QWidget* parent, const QStyleOptionViewItem& option,
55 const QModelIndex& index) const override;
56 void setEditorData(QWidget* editor, const QModelIndex& index) const override;
57 void setModelData(QWidget* editor, QAbstractItemModel* model,
58 const QModelIndex& index) const override;
60 const QModelIndex& index) const override;
Subclass of QStyledItemDelegate to display/edit a QKeySequence.
Definition keysequencedelegate.h:44
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition keysequencedelegate.cpp:95
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
Definition keysequencedelegate.cpp:85
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition keysequencedelegate.cpp:50
~KeySequenceDelegate() noexcept
Definition keysequencedelegate.cpp:43
KeySequenceDelegate(const KeySequenceDelegate &other)=delete
void setEditorData(QWidget *editor, const QModelIndex &index) const override
Definition keysequencedelegate.cpp:73
Definition occmodel.cpp:76