|
Wireshark 5.1.0
The Wireshark network protocol analyzer
|
#include <QTreeView>#include <QHeaderView>#include <QHelpEvent>#include <QStyledItemDelegate>#include <QWidget>#include <QPalette>#include <functional>Go to the source code of this file.
Classes | |
| class | PinnedOverlayView::FixedRowHeightDelegate |
| 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... | |
Namespaces | |
| namespace | PinnedOverlayView |
| Setup shared by PinnedColumnView and PinnedRowView, the two QTreeView-based overlay panes used to keep frozen columns/pinned rows visible alongside the primary packet list. Factored out so a fix to one overlay's base configuration (or its boundary-divider widget) can't be applied to only one of the two views by mistake. | |
Functions | |
| void | PinnedOverlayView::applyCommonTreeViewSetup (QTreeView *view) |
| Applies the QTreeView configuration common to every pinned overlay pane: no expand arrows, uniform row heights, no keyboard focus (see either view's constructor comment for why), continuous mouse tracking (so hover can be reported to the primary view), and no scrollbars of its own (scrolling is always mirrored from the primary view instead). | |
| QWidget * | PinnedOverlayView::createBoundaryDivider (QTreeView *view) |
| Constructs the thin child widget marking the boundary between frozen and non-frozen columns, styled to match the palette's "mid" color the same way in both overlay panes. A plain QPainter(view) can't be used directly on a QAbstractScrollArea-derived widget like QTreeView (Qt redirects painting to the viewport, not the widget itself), so this is a real (if trivial) child widget instead of a custom paintEvent(). | |
| void | PinnedOverlayView::repositionBoundaryDivider (QWidget *divider, QTreeView *view) |
| Repositions a boundary divider widget (see createBoundaryDivider()) to hug the view's right edge, spanning its full height. Called from both overlay panes' resizeEvent() overrides to keep the divider in sync as the view is resized. | |
| void | PinnedOverlayView::mirrorSectionWidth (QTreeView *view, int column, int width) |
| Mirrors a single section's width from the primary view's header onto this overlay view's own header, ignoring an out-of-range column (e.g. one not currently shown by this particular overlay). | |
Header file defining shared setup for the pinned overlay views Copyright 2026, Mark Stout mark..nosp@m.stou.nosp@m.t@mar.nosp@m.ksto.nosp@m.ut.co.nosp@m.m
Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later