| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet_list_header.h
Go to the documentation of this file.
1
10#ifndef UI_QT_WIDGETS_PACKET_LIST_HEADER_H_
11#define UI_QT_WIDGETS_PACKET_LIST_HEADER_H_
12
13#include <cfile.h>
14
15#include <QHeaderView>
16#include <QDrag>
17#include <QMenu>
18
19 class QEvent;
20
21 class PacketListHeader : public QHeaderView
22{
23 Q_OBJECT
24
25 public:
26 PacketListHeader(Qt::Orientation orientation, QWidget *parent = nullptr);
27
28 protected:
29 virtual void dropEvent(QDropEvent *event) override;
30 virtual void dragEnterEvent(QDragEnterEvent *event) override;
31 virtual void dragMoveEvent(QDragMoveEvent *event) override;
32
33 virtual void mouseMoveEvent(QMouseEvent *e) override;
34 virtual void mousePressEvent(QMouseEvent *e) override;
35
36 virtual void contextMenuEvent(QContextMenuEvent *event) override;
37
38 protected slots:
39 void columnVisibilityTriggered();
40
41 void setAlignment(QAction *);
42 void setDisplayFormat(QAction *);
43
44 void showColumnPrefs();
45 void doEditColumn();
46 void resizeToContent();
47 void removeColumn();
48 void resizeToWidth();
49
50signals:
51 void resetColumnWidth(int col);
52 void updatePackets(bool redraw);
53 void showColumnPreferences(QString pane_name);
54 void editColumn(int column);
55
56 void columnsChanged();
57
58 private:
59 int sectionIdx;
60};
61
62#endif
cfile.h
PacketListHeader
Definition packet_list_header.h:22