13#ifndef MULTI_COLOR_PACKET_DELEGATE_H
14#define MULTI_COLOR_PACKET_DELEGATE_H
17#include <QStyledItemDelegate>
56 void paint(QPainter *painter,
const QStyleOptionViewItem &option,
57 const QModelIndex &index)
const override;
65 QColor calculateForeground(
const QList<QColor> &backgrounds)
const;
73 void drawStripedBackground(QPainter *painter,
const QStyleOptionViewItem &option,
74 const QList<QColor> &colors,
const OverlayWidget &overlay)
const;
82 void drawShiftRightBackground(QPainter *painter,
const QStyleOptionViewItem &option,
83 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:142
MultiColorPacketDelegate(QWidget *parent=0)
Constructs a new MultiColorPacketDelegate.
Definition multi_color_packet_delegate.cpp:137
A QTreeView clone showing only a leftmost run of columns from a shared model, used to keep "frozen" c...
Definition pinned_column_view.h:33
A QTreeView clone that shows every row of a PinnedRowsModel (i.e. every currently pinned packet,...
Definition pinned_row_view.h:32