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 paintContent (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 Paint only the tag content (emoji/text), no background fill.

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

◆ paintContent()

void TagColumnDelegate::paintContent ( QPainter * painter,
const QStyleOptionViewItem & option,
const QModelIndex & index ) const

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: