41 void paint(QPainter *painter,
const QStyleOptionViewItem &option,
42 const QModelIndex &index)
const override;
50 QColor calculateForeground(
const QList<QColor> &backgrounds)
const;
58 void drawStripedBackground(QPainter *painter,
const QStyleOptionViewItem &option,
59 const QList<QColor> &colors)
const;
67 void drawShiftRightBackground(QPainter *painter,
const QStyleOptionViewItem &option,
68 const QList<QColor> &colors)
const;
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
Renders the item using the given painter and style option.
Definition multi_color_packet_delegate.cpp:44