|
Wireshark 4.7.4
The Wireshark network protocol analyzer
|
The header used by PinnedColumnView. More...
#include <pinned_column_header.h>
Public Member Functions | |
| PinnedColumnHeader (PacketList *packet_list, QWidget *parent=nullptr) | |
The header used by PinnedColumnView.
QHeaderView handles interactive resize (and its own click-to-sort detection) directly in its mousePress/Move/ReleaseEvent virtuals rather than through events that reliably pass through an installed event filter (an installEventFilter()-based approach was tried and found not to see any mouse press/release events at all, even though resize itself worked). Overriding those virtuals directly guarantees they're seen, so a plain click (no drag) can be forwarded to the primary view's header to trigger sorting, matching a click on the real header exactly.
|
explicit |
| packet_list | The primary view mouse/context-menu events on this header are forwarded to; must outlive this header. |
| parent | The view this header is installed on via setHeader(). |