A spacer item for legends to create empty space between other legend items.
More...
#include <qcp_spacer_legend_item.h>
|
|
virtual void | draw (QCPPainter *) override |
| | Draws the spacer item (intentionally does nothing).
|
| |
| virtual QSize | minimumOuterSizeHint () const override |
| | Calculates the minimum outer size hint required for the spacer.
|
| |
A spacer item for legends to create empty space between other legend items.
◆ QCPSpacerLegendItem()
| QCPSpacerLegendItem::QCPSpacerLegendItem |
( |
QCPLegend * |
pParent, |
|
|
int |
size = 10, |
|
|
bool |
horizontal = false |
|
) |
| |
|
explicit |
Constructs a new QCPSpacerLegendItem object.
- Parameters
-
| pParent | The parent legend this item belongs to. |
| size | The size of the spacer in pixels. |
| horizontal | True if the spacer is horizontal, false if vertical. |
◆ isHorizontal()
| bool QCPSpacerLegendItem::isHorizontal |
( |
| ) |
const |
|
inline |
Checks if the spacer is horizontal.
- Returns
- True if the spacer is horizontal, false if it is vertical.
◆ minimumOuterSizeHint()
| QSize QCPSpacerLegendItem::minimumOuterSizeHint |
( |
| ) |
const |
|
overrideprotectedvirtual |
Calculates the minimum outer size hint required for the spacer.
- Returns
- A QSize representing the minimum outer size.
◆ setIsHorizontal()
| void QCPSpacerLegendItem::setIsHorizontal |
( |
bool |
horiz | ) |
|
|
inline |
Sets the orientation of the spacer.
- Parameters
-
| horiz | True to set the spacer to horizontal, false for vertical. |
◆ setSize()
| void QCPSpacerLegendItem::setSize |
( |
int |
size | ) |
|
|
inline |
Sets the size of the spacer.
- Parameters
-
| size | The new size of the spacer in pixels. |
◆ size()
| int QCPSpacerLegendItem::size |
( |
| ) |
const |
|
inline |
Gets the size of the spacer.
- Returns
- The size of the spacer in pixels.
The documentation for this class was generated from the following files: