Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_scaleitem.h
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_scaleitem.h
r4271 r9383 33 33 34 34 \par Example 35 The following example shows how to replace the left axis, by a scale item 36 at the x position 0.0. 37 \verbatim 38 QwtPlotScaleItem *scaleItem = 39 new QwtPlotScaleItem(QwtScaleDraw::RightScale, 0.0); 40 scaleItem->setFont(plot->axisWidget(QwtPlot::yLeft)->font()); 41 scaleItem->attach(plot); 35 The following example shows how to replace the left axis, by a scale item 36 at the x position 0.0. 37 \code 38 QwtPlotScaleItem *scaleItem = new QwtPlotScaleItem( QwtScaleDraw::RightScale, 0.0 ); 39 scaleItem->setFont( plot->axisWidget( QwtPlot::yLeft )->font() ); 40 scaleItem->attach(plot); 42 41 43 plot->enableAxis(QwtPlot::yLeft, false); 44 \endverbatim 42 plot->enableAxis( QwtPlot::yLeft, false ); 43 \endcode 44 \endpar 45 45 */ 46 46 … … 76 76 double position() const; 77 77 78 void setBorderDistance( int numPixels);78 void setBorderDistance( int ); 79 79 int borderDistance() const; 80 80 81 81 void setAlignment( QwtScaleDraw::Alignment ); 82 82 83 virtual void draw( QPainter * p,83 virtual void draw( QPainter *, 84 84 const QwtScaleMap &xMap, const QwtScaleMap &yMap, 85 const QRectF & rect ) const;85 const QRectF &canvasRect ) const; 86 86 87 87 virtual void updateScaleDiv( const QwtScaleDiv &, const QwtScaleDiv & );
Note:
See TracChangeset
for help on using the changeset viewer.