Wireshark  4.3.0
The Wireshark network protocol analyzer
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 
21 public:
22  explicit QCPStringLegendItem(QCPLegend *pParent, const QString& strText);
23 
24  QString text() const;
25  void setText(const QString& strText);
26 
27 protected:
28  virtual void draw(QCPPainter *painter) override;
29  virtual QSize minimumOuterSizeHint() const override;
30 
31 private:
32  QString m_strText;
33 };
34 
35 #endif
Definition: qcp_string_legend_item.h:18