Wireshark
4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
ui
qt
widgets
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
14
class
QCPSpacerLegendItem
:
public
QCPAbstractLegendItem
15
{
16
Q_OBJECT
17
18
public
:
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
25
protected
:
26
virtual
void
draw(QCPPainter*)
override
{}
27
virtual
QSize minimumOuterSizeHint()
const override
;
28
29
private
:
30
int
m_size;
31
bool
m_horiz;
32
};
33
34
#endif
// QCP_SPACER_LEGEND_ITEM_H
QCPSpacerLegendItem
Definition
qcp_spacer_legend_item.h:15
Generated by
1.9.8