20#ifndef LIBREPCB_EDITOR_CHECKABLEITEMSDELEGATE_H
21#define LIBREPCB_EDITOR_CHECKABLEITEMSDELEGATE_H
55 QWidget*
createEditor(QWidget* parent, const QStyleOptionViewItem& option,
56 const QModelIndex& index) const override;
57 void setEditorData(QWidget* editor, const QModelIndex& index) const override;
58 void setModelData(QWidget* editor, QAbstractItemModel* model,
59 const QModelIndex& index) const override;
61 const QModelIndex& index) const override;
Subclass of QStyledItemDelegate to display/edit a list of checkable strings.
Definition: checkableitemsdelegate.h:45
CheckableItemsDelegate(QObject *parent=nullptr) noexcept
Definition: checkableitemsdelegate.cpp:39
~CheckableItemsDelegate() noexcept
Definition: checkableitemsdelegate.cpp:43
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition: checkableitemsdelegate.cpp:77
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
Definition: checkableitemsdelegate.cpp:69
CheckableItemsDelegate(const CheckableItemsDelegate &other)=delete
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition: checkableitemsdelegate.cpp:50
void setEditorData(QWidget *editor, const QModelIndex &index) const override
Definition: checkableitemsdelegate.cpp:61
Definition: occmodel.cpp:77