Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
TagColumnDelegate Class Reference
Inheritance diagram for TagColumnDelegate:

Public Member Functions

 TagColumnDelegate (QWidget *parent=nullptr)
void setMultiColorDelegate (const MultiColorPacketDelegate *delegate)
 Paint only the tag content (emoji/text), no background fill.
void paintContent (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const

Protected Member Functions

void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override
bool editorEvent (QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override

Member Function Documentation

◆ setMultiColorDelegate()

void TagColumnDelegate::setMultiColorDelegate ( const MultiColorPacketDelegate * delegate)
inline

Paint only the tag content (emoji/text), no background fill.

Used by PacketList::drawRow() and PinnedRowView::drawRow() when painting the hover highlight, so the hover background isn't clobbered by this delegate's own background fill (which paint() does via initStyleOption(), re-fetching Qt::BackgroundRole from the model).


The documentation for this class was generated from the following files: