Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
MultiColorPacketDelegate Class Reference

A delegate for rendering multi-colored packet items in a view. More...

#include <multi_color_packet_delegate.h>

Inheritance diagram for MultiColorPacketDelegate:

Public Member Functions

 MultiColorPacketDelegate (QWidget *parent=0)
 Constructs a new MultiColorPacketDelegate.
 

Protected Member Functions

void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 Renders the item using the given painter and style option.
 

Detailed Description

A delegate for rendering multi-colored packet items in a view.

Constructor & Destructor Documentation

◆ MultiColorPacketDelegate()

MultiColorPacketDelegate::MultiColorPacketDelegate ( QWidget *  parent = 0)

Constructs a new MultiColorPacketDelegate.

Parameters
parentThe parent widget, defaults to 0.

Member Function Documentation

◆ paint()

void MultiColorPacketDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
overrideprotected

Renders the item using the given painter and style option.

Parameters
painterThe painter used to draw the item.
optionThe style option specifying how the item should be drawn.
indexThe model index of the item to be drawn.

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