12#ifndef QCP_STRING_LEGEND_ITEM_H
13#define QCP_STRING_LEGEND_ITEM_H
15#include <ui/qt/widgets/qcustomplot.h>
42 void setText(
const QString& strText);
49 virtual void draw(QCPPainter *painter)
override;
A legend item that displays a static text string.
Definition qcp_string_legend_item.h:21
virtual void draw(QCPPainter *painter) override
Draws the string legend item.
Definition qcp_string_legend_item.cpp:30
void setText(const QString &strText)
Sets the text string to be displayed.
Definition qcp_string_legend_item.cpp:25
virtual QSize minimumOuterSizeHint() const override
Calculates the minimum outer size hint required for the text.
Definition qcp_string_legend_item.cpp:38
QString text() const
Retrieves the text string displayed by this legend item.
Definition qcp_string_legend_item.cpp:20