Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
ResizeHeaderView Class Reference

QHeaderView subclass that adds a context menu for interactively resizing or resetting column (or row) widths. More...

#include <resize_header_view.h>

Inheritance diagram for ResizeHeaderView:
AdaptiveHeaderView

Public Member Functions

 ResizeHeaderView (Qt::Orientation orientation, QWidget *parent=nullptr)
 Constructs a ResizeHeaderView.
Public Member Functions inherited from AdaptiveHeaderView
 AdaptiveHeaderView (Qt::Orientation orientation, QWidget *parent=nullptr)
 Constructs an AdaptiveHeaderView.
virtual QSize sizeHint () const override
 Overriding sizeHint to provide proper heights when font changes.

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *e) override
 Presents a context menu at the position of e, offering actions to resize sections to their contents or reset them to default widths.
Protected Member Functions inherited from AdaptiveHeaderView
virtual void changeEvent (QEvent *event) override

Detailed Description

QHeaderView subclass that adds a context menu for interactively resizing or resetting column (or row) widths.

Constructor & Destructor Documentation

◆ ResizeHeaderView()

ResizeHeaderView::ResizeHeaderView ( Qt::Orientation orientation,
QWidget * parent = nullptr )

Constructs a ResizeHeaderView.

Parameters
orientationWhether this is a horizontal (column) or vertical (row) header.
parentOptional parent widget.

Member Function Documentation

◆ contextMenuEvent()

void ResizeHeaderView::contextMenuEvent ( QContextMenuEvent * e)
overrideprotected

Presents a context menu at the position of e, offering actions to resize sections to their contents or reset them to default widths.

Parameters
eThe context menu event carrying the cursor position.

Shows a context menu which resizes all sections to their contents.


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