Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
PinnedOverlayView::FixedRowHeightDelegate Class Reference

Delegate wrapper reporting a caller-supplied row height. Some styles (Breeze) size rows by the view's frame shape, so an overlay (NoFrame) would otherwise come out a pixel taller than PacketList and misalign. All other behavior is forwarded to the wrapped delegate, or to QStyledItemDelegate when none is given. More...

#include <pinned_overlay_view.h>

Inheritance diagram for PinnedOverlayView::FixedRowHeightDelegate:

Public Member Functions

 FixedRowHeightDelegate (QAbstractItemDelegate *inner, std::function< int()> row_height, QObject *parent)
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override
bool helpEvent (QHelpEvent *event, QAbstractItemView *view, const QStyleOptionViewItem &option, const QModelIndex &index) override

Detailed Description

Delegate wrapper reporting a caller-supplied row height. Some styles (Breeze) size rows by the view's frame shape, so an overlay (NoFrame) would otherwise come out a pixel taller than PacketList and misalign. All other behavior is forwarded to the wrapped delegate, or to QStyledItemDelegate when none is given.


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