13#ifndef MULTI_COLOR_PACKET_DELEGATE_H
14#define MULTI_COLOR_PACKET_DELEGATE_H
17#include <QStyledItemDelegate>
60 const QModelIndex &index, QColor *fg_out =
nullptr)
const;
69 void paint(QPainter *painter,
const QStyleOptionViewItem &option,
70 const QModelIndex &index)
const override;
78 QColor calculateForeground(
const QList<QColor> &backgrounds)
const;
86 void drawStripedBackground(QPainter *painter,
const QStyleOptionViewItem &option,
87 const QList<QColor> &colors,
const OverlayWidget &overlay)
const;
95 void drawShiftRightBackground(QPainter *painter,
const QStyleOptionViewItem &option,
96 const QList<QColor> &colors,
const OverlayWidget &overlay)
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:230
MultiColorPacketDelegate(QWidget *parent=0)
Constructs a new MultiColorPacketDelegate.
Definition multi_color_packet_delegate.cpp:137
bool paintMultiColorBackground(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index, QColor *fg_out=nullptr) const
Paint only the multi-color row background for an item.
Definition multi_color_packet_delegate.cpp:142
A QTreeView clone showing only a leftmost run of columns from a shared model, used to keep "frozen" c...
Definition pinned_column_view.h:34
A QTreeView clone that shows every row of a PinnedRowsModel (i.e. every currently pinned packet,...
Definition pinned_row_view.h:32