9#ifndef QCP_SPACER_LEGEND_ITEM_H
10#define QCP_SPACER_LEGEND_ITEM_H
12#include <ui/qt/widgets/qcustomplot.h>
34 int size()
const {
return m_size; }
58 virtual void draw(QCPPainter*)
override {}
A spacer item for legends to create empty space between other legend items.
Definition qcp_spacer_legend_item.h:18
bool isHorizontal() const
Checks if the spacer is horizontal.
Definition qcp_spacer_legend_item.h:46
int size() const
Gets the size of the spacer.
Definition qcp_spacer_legend_item.h:34
virtual void draw(QCPPainter *) override
Draws the spacer item (intentionally does nothing).
Definition qcp_spacer_legend_item.h:58
virtual QSize minimumOuterSizeHint() const override
Calculates the minimum outer size hint required for the spacer.
Definition qcp_spacer_legend_item.cpp:19
void setSize(int size)
Sets the size of the spacer.
Definition qcp_spacer_legend_item.h:40
void setIsHorizontal(bool horiz)
Sets the orientation of the spacer.
Definition qcp_spacer_legend_item.h:52