20#ifndef LIBREPCB_EDITOR_ANGLEDELEGATE_H
21#define LIBREPCB_EDITOR_ANGLEDELEGATE_H
55 const QLocale& locale) const override;
56 QWidget*
createEditor(QWidget* parent, const QStyleOptionViewItem& option,
57 const QModelIndex& index) const override;
58 void setEditorData(QWidget* editor, const QModelIndex& index) const override;
59 void setModelData(QWidget* editor, QAbstractItemModel* model,
60 const QModelIndex& index) const override;
62 const QModelIndex& index) const override;
Subclass of QStyledItemDelegate to display/edit librepcb::Angle values.
Definition angledelegate.h:44
QString displayText(const QVariant &value, const QLocale &locale) const override
Definition angledelegate.cpp:53
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition angledelegate.cpp:89
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
Definition angledelegate.cpp:83
void editingFinished() noexcept
Definition angledelegate.cpp:100
~AngleDelegate() noexcept
Definition angledelegate.cpp:46
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Definition angledelegate.cpp:58
void setEditorData(QWidget *editor, const QModelIndex &index) const override
Definition angledelegate.cpp:77
AngleDelegate(const AngleDelegate &other)=delete
Definition occmodel.cpp:76