Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
qcp_spacer_legend_item.h
Go to the documentation of this file.
1
9#ifndef QCP_SPACER_LEGEND_ITEM_H
10#define QCP_SPACER_LEGEND_ITEM_H
11
12#include <ws_attributes.h> // _U_
13
14class QCPAbstractLegendItem;
15
16class QCPSpacerLegendItem : public QCPAbstractLegendItem
17{
18 Q_OBJECT
19
20public:
21 explicit QCPSpacerLegendItem(QCPLegend* pParent, int size = 10, bool horizontal = false);
22 int size() const { return m_size; }
23 void setSize(int size) { m_size = size; }
24 bool isHorizontal() const { return m_horiz; }
25 void setIsHorizontal(bool horiz) { m_horiz = horiz; }
26
27protected:
28 virtual void draw(QCPPainter* painter _U_) override {}
29 virtual QSize minimumOuterSizeHint() const override;
30
31private:
32 int m_size;
33 bool m_horiz;
34};
35
36#endif // QCP_SPACER_LEGEND_ITEM_H
Definition qcp_spacer_legend_item.h:17