Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_legenditem.h
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_legenditem.h
r8127 r9383 24 24 to have more space for the plot canvas. 25 25 26 In opposite to QwtLegend the legend item is not interactive. 26 In opposite to QwtLegend the legend item is not interactive. 27 27 To identify mouse clicks on a legend item an event filter 28 28 needs to be installed catching mouse events ob the plot canvas. 29 29 The geometries of the legend items are available using 30 30 legendGeometries(). 31 32 The legend item is aligned to plot canvas according to 31 32 The legend item is aligned to plot canvas according to 33 33 its alignment() flags. It might have a background for the 34 34 complete legend ( usually semi transparent ) or for 35 35 each legend item. 36 36 37 \note An external QwtLegend with a transparent background 38 on top the plot canvas might be another option 37 \note An external QwtLegend with a transparent background 38 on top the plot canvas might be another option 39 39 with a similar effect. 40 40 */ … … 46 46 \brief Background mode 47 47 48 Depending on the mode the complete legend or each item 48 Depending on the mode the complete legend or each item 49 49 might have an background. 50 50 … … 84 84 void setItemSpacing( int ); 85 85 int itemSpacing() const; 86 86 87 87 void setFont( const QFont& ); 88 88 QFont font() const; 89 89 90 void setBorderDistance( int numPixels);90 void setBorderDistance( int ); 91 91 int borderDistance() const; 92 92 … … 106 106 QPen textPen() const; 107 107 108 virtual void draw( QPainter * p,108 virtual void draw( QPainter *, 109 109 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 110 const QRectF & rect ) const;110 const QRectF &canvasRect ) const; 111 111 112 112 void clearLegend(); … … 118 118 119 119 virtual QSize minimumSize( const QwtLegendData & ) const; 120 virtual int heightForWidth( const QwtLegendData &, int w ) const;120 virtual int heightForWidth( const QwtLegendData &, int width ) const; 121 121 122 122 QList< const QwtPlotItem * > plotItems() const; … … 124 124 125 125 protected: 126 virtual void drawLegendData( QPainter *painter, 126 virtual void drawLegendData( QPainter *painter, 127 127 const QwtPlotItem *, const QwtLegendData &, const QRectF & ) const; 128 128
Note:
See TracChangeset
for help on using the changeset viewer.