Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_abstract_legend.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_abstract_legend.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_abstract_legend.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_legend_data.h"15 14 #include <qframe.h> 16 #include <qlist.h>17 15 16 class QwtLegendData; 17 template< typename T > class QList; 18 18 class QVariant; 19 19 20 20 /*! 21 \brief Abstract base class for legend widgets 21 \brief Abstract base class for legend widgets 22 22 23 Legends, that need to be under control of the QwtPlot layout system 24 need to be derived from QwtAbstractLegend. 23 Legends, that need to be under control of the QwtPlot layout system 24 need to be derived from QwtAbstractLegend. 25 25 26 \note Other type of legends can be implemented by connecting to 26 \note Other type of legends can be implemented by connecting to 27 27 the QwtPlot::legendDataChanged() signal. But as these legends 28 28 are unknown to the plot layout system the layout code … … 30 30 in application code. 31 31 32 \sa QwtLegend 32 \sa QwtLegend 33 33 */ 34 34 class QWT_EXPORT QwtAbstractLegend : public QFrame … … 36 36 Q_OBJECT 37 37 38 public: 39 explicit QwtAbstractLegend( QWidget *parent = NULL );38 public: 39 explicit QwtAbstractLegend( QWidget* parent = NULL ); 40 40 virtual ~QwtAbstractLegend(); 41 41 42 42 /*! 43 Render the legend into a given rectangle. 43 Render the legend into a given rectangle. 44 44 45 \param painter Painter 46 \param rect Bounding rectangle 47 \param fillBackground When true, fill rect with the widget background 45 \param painter Painter 46 \param rect Bounding rectangle 47 \param fillBackground When true, fill rect with the widget background 48 48 49 \sa renderLegend() is used by QwtPlotRenderer 50 */ 51 virtual void renderLegend( QPainter *painter,52 const QRectF &rect, bool fillBackground ) const = 0;49 \sa renderLegend() is used by QwtPlotRenderer 50 */ 51 virtual void renderLegend( QPainter* painter, 52 const QRectF& rect, bool fillBackground ) const = 0; 53 53 54 54 //! \return True, when no plot item is inserted … … 57 57 virtual int scrollExtent( Qt::Orientation ) const; 58 58 59 public Q_SLOTS: 59 public Q_SLOTS: 60 60 61 61 /*! 62 \brief Update the entries for a plot item 62 \brief Update the entries for a plot item 63 63 64 \param itemInfo Info about an item 65 \param data List of legend entry attributes for the item 64 \param itemInfo Info about an item 65 \param data List of legend entry attributes for the item 66 66 */ 67 virtual void updateLegend( const QVariant &itemInfo,68 const QList<QwtLegendData > &data ) = 0;67 virtual void updateLegend( const QVariant& itemInfo, 68 const QList< QwtLegendData >& data ) = 0; 69 69 }; 70 70
Note:
See TracChangeset
for help on using the changeset viewer.
