Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_scaleitem.h


Ignore:
Timestamp:
Mar 19, 2021, 9:15:03 AM (3 years ago)
Author:
stoecker
Message:

update to qwt verion 6.1.1 to fix build with newer Qt5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_plot_scaleitem.h

    r4271 r9383  
    3333
    3434  \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);
    4241
    43 plot->enableAxis(QwtPlot::yLeft, false);
    44 \endverbatim
     42      plot->enableAxis( QwtPlot::yLeft, false );
     43    \endcode
     44  \endpar
    4545*/
    4646
     
    7676    double position() const;
    7777
    78     void setBorderDistance( int numPixels );
     78    void setBorderDistance( int );
    7979    int borderDistance() const;
    8080
    8181    void setAlignment( QwtScaleDraw::Alignment );
    8282
    83     virtual void draw( QPainter *p,
     83    virtual void draw( QPainter *,
    8484        const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    85         const QRectF &rect ) const;
     85        const QRectF &canvasRect ) const;
    8686
    8787    virtual void updateScaleDiv( const QwtScaleDiv &, const QwtScaleDiv & );
Note: See TracChangeset for help on using the changeset viewer.