| Wireshark 4.7.3 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

  parent | The parent widget, defaults to 0.

## Member Function Documentation

## ◆ paint()

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

Renders the item using the given painter and style option.

Parameters

  painter | The painter used to draw the item.
  option | The style option specifying how the item should be drawn.
  index | The model index of the item to be drawn.

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

- /builds/wireshark/wireshark/ui/qt/models/multi_color_packet_delegate.h
- /builds/wireshark/wireshark/ui/qt/models/multi_color_packet_delegate.cpp