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 <ui/qt/widgets/qcustomplot.h>
13
14class QCPSpacerLegendItem : public QCPAbstractLegendItem
15{
16 Q_OBJECT
17
18public:
19 explicit QCPSpacerLegendItem(QCPLegend* pParent, int size = 10, bool horizontal = false);
20 int size() const { return m_size; }
21 void setSize(int size) { m_size = size; }
22 bool isHorizontal() const { return m_horiz; }
23 void setIsHorizontal(bool horiz) { m_horiz = horiz; }
24
25protected:
26 virtual void draw(QCPPainter*) override {}
27 virtual QSize minimumOuterSizeHint() const override;
28
29private:
30 int m_size;
31 bool m_horiz;
32};
33
34#endif // QCP_SPACER_LEGEND_ITEM_H
Definition qcp_spacer_legend_item.h:15