Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
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:

Public Member Functions

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

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.
 

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: