| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
qcp_string_legend_item.h
Go to the documentation of this file.
1
12#ifndef QCP_STRING_LEGEND_ITEM_H
13#define QCP_STRING_LEGEND_ITEM_H
14
15#include <ui/qt/widgets/qcustomplot.h>
16
17 class QCPStringLegendItem : public QCPAbstractLegendItem
18{
19 Q_OBJECT
20
21public:
22 explicit QCPStringLegendItem(QCPLegend *pParent, const QString& strText);
23
24 QString text() const;
25 void setText(const QString& strText);
26
27protected:
28 virtual void draw(QCPPainter *painter) override;
29 virtual QSize minimumOuterSizeHint() const override;
30
31private:
32 QString m_strText;
33};
34
35#endif
QCPStringLegendItem
Definition qcp_string_legend_item.h:18