Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_legend_data.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_legend_data.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_legend_data.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.h" 15 #include "qwt_graphic.h" 14 16 15 #include <qvariant.h> 17 #include <qpixmap.h>18 16 #include <qmap.h> 19 17 18 class QwtText; 19 class QwtGraphic; 20 20 21 /*! 21 \brief Attributes of an entry on a legend 22 \brief Attributes of an entry on a legend 22 23 23 QwtLegendData is an abstract container ( like QAbstractModel ) 24 to exchange attributes, that are only known between to 25 the plot item and the legend. 24 QwtLegendData is an abstract container ( like QAbstractModel ) 25 to exchange attributes, that are only known between to 26 the plot item and the legend. 26 27 27 By overloading QwtPlotItem::legendData() any other set of attributes 28 could be used, that can be handled by a modified ( or completely 29 different ) implementation of a legend. 28 By overloading QwtPlotItem::legendData() any other set of attributes 29 could be used, that can be handled by a modified ( or completely 30 different ) implementation of a legend. 30 31 31 \sa QwtLegend, QwtPlotLegendItem 32 \note The stockchart example implements a legend as a tree 32 \sa QwtLegend, QwtPlotLegendItem 33 \note The stockchart example implements a legend as a tree 33 34 with checkable items 34 35 */ 35 36 class QWT_EXPORT QwtLegendData 36 37 { 37 public: 38 public: 38 39 //! Mode defining how a legend entry interacts 39 40 enum Mode … … 49 50 }; 50 51 51 //! Identifier how to interpret ea QVariant52 //! Identifier how to interpret a QVariant 52 53 enum Role 53 54 { … … 68 69 ~QwtLegendData(); 69 70 70 void setValues( const QMap<int, QVariant >& );71 const QMap<int, QVariant > &values() const;71 void setValues( const QMap< int, QVariant >& ); 72 const QMap< int, QVariant >& values() const; 72 73 73 void setValue( int role, const QVariant & );74 void setValue( int role, const QVariant& ); 74 75 QVariant value( int role ) const; 75 76 … … 81 82 Mode mode() const; 82 83 83 private: 84 QMap<int, QVariant > d_map;84 private: 85 QMap< int, QVariant > m_map; 85 86 }; 86 87
Note:
See TracChangeset
for help on using the changeset viewer.
