20#ifndef LIBREPCB_EDITOR_PARTINFORMATIONDELEGATE_H
21#define LIBREPCB_EDITOR_PARTINFORMATIONDELEGATE_H
26#include "../project/partinformationprovider.h"
53 std::shared_ptr<const PartInformationProvider::PartInformation>
info;
56 QSize
calcSizeHint(
const QStyleOptionViewItem& option)
const noexcept;
58 bool getColors(QBrush& background, QPen& outline,
59 QPen& text) const noexcept;
64 QObject* parent =
nullptr) noexcept;
69 virtual QSize
sizeHint(const QStyleOptionViewItem& option,
70 const QModelIndex& index) const noexcept override;
71 virtual
void paint(QPainter* painter, const QStyleOptionViewItem& option,
72 const QModelIndex& index) const override;
79 bool getData(const QModelIndex& index,
Data& data) const noexcept;
Definition: occmodel.cpp:77