Wireshark 4.7.2
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
adaptive_header_view.h
Go to the documentation of this file.
1
9
10#ifndef ADAPTIVE_HEADERVIEW_H_
11#define ADAPTIVE_HEADERVIEW_H_
12
13#include <QHeaderView>
14
15class QEvent;
16
30class AdaptiveHeaderView : public QHeaderView
31{
32 Q_OBJECT
33public:
34
40 AdaptiveHeaderView(Qt::Orientation orientation, QWidget *parent = nullptr);
41
42
52 virtual QSize sizeHint() const override;
53
54protected:
55
56 virtual void changeEvent(QEvent *event) override;
57};
58
59#endif /* ADAPTIVE_HEADERVIEW_H_ */
virtual QSize sizeHint() const override
Overriding sizeHint to provide proper heights when font changes.
Definition adaptive_header_view.cpp:24
AdaptiveHeaderView(Qt::Orientation orientation, QWidget *parent=nullptr)
Constructs an AdaptiveHeaderView.
Definition adaptive_header_view.cpp:19