Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_legend_label.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_legend_label.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_legend_label.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 12 12 13 13 #include "qwt_global.h" 14 #include "qwt_text_label.h" 14 15 #include "qwt_legend_data.h" 15 #include "qwt_text.h"16 #include "qwt_text_label.h"17 #include <qpixmap.h>18 16 19 class Qwt LegendData;17 class QwtText; 20 18 21 19 /*! 22 \brief A widget representing something on a QwtLegend. 23 */ 24 class QWT_EXPORT QwtLegendLabel: public QwtTextLabel 20 \brief A widget representing something on a QwtLegend. 21 */ 22 class QWT_EXPORT QwtLegendLabel : public QwtTextLabel 25 23 { 26 24 Q_OBJECT 27 public: 28 explicit QwtLegendLabel( QWidget *parent = 0 );25 public: 26 explicit QwtLegendLabel( QWidget* parent = 0 ); 29 27 virtual ~QwtLegendLabel(); 30 28 31 void setData( const QwtLegendData & );32 const QwtLegendData &data() const;29 void setData( const QwtLegendData& ); 30 const QwtLegendData& data() const; 33 31 34 32 void setItemMode( QwtLegendData::Mode ); … … 38 36 int spacing() const; 39 37 40 virtual void setText( const QwtText & );38 virtual void setText( const QwtText& ) QWT_OVERRIDE; 41 39 42 void setIcon( const QPixmap & );40 void setIcon( const QPixmap& ); 43 41 QPixmap icon() const; 44 42 45 virtual QSize sizeHint() const; 43 virtual QSize sizeHint() const QWT_OVERRIDE; 46 44 47 45 bool isChecked() const; 48 46 49 public Q_SLOTS: 47 public Q_SLOTS: 50 48 void setChecked( bool on ); 51 49 52 Q_SIGNALS: 50 Q_SIGNALS: 53 51 //! Signal, when the legend item has been clicked 54 52 void clicked(); … … 63 61 void checked( bool ); 64 62 65 protected: 63 protected: 66 64 void setDown( bool ); 67 65 bool isDown() const; 68 66 69 virtual void paintEvent( QPaintEvent * );70 virtual void mousePressEvent( QMouseEvent * );71 virtual void mouseReleaseEvent( QMouseEvent * );72 virtual void keyPressEvent( QKeyEvent * );73 virtual void keyReleaseEvent( QKeyEvent * );67 virtual void paintEvent( QPaintEvent* ) QWT_OVERRIDE; 68 virtual void mousePressEvent( QMouseEvent* ) QWT_OVERRIDE; 69 virtual void mouseReleaseEvent( QMouseEvent* ) QWT_OVERRIDE; 70 virtual void keyPressEvent( QKeyEvent* ) QWT_OVERRIDE; 71 virtual void keyReleaseEvent( QKeyEvent* ) QWT_OVERRIDE; 74 72 75 private: 73 private: 76 74 class PrivateData; 77 PrivateData *d_data;75 PrivateData* m_data; 78 76 }; 79 77
Note:
See TracChangeset
for help on using the changeset viewer.
