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


Ignore:
Timestamp:
Nov 3, 2026, 10:53:35 AM (3 weeks ago)
Author:
stuerze
Message:

deprecated functions exchanged libs updated

File:
1 edited

Legend:

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

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1818
    1919/*!
    20   \brief A class which draws a scale inside the plot canvas
     20   \brief A class which draws a scale inside the plot canvas
    2121
    22   QwtPlotScaleItem can be used to draw an axis inside the plot canvas.
    23   It might by synchronized to one of the axis of the plot, but can
    24   also display its own ticks and labels.
     22   QwtPlotScaleItem can be used to draw an axis inside the plot canvas.
     23   It might by synchronized to one of the axis of the plot, but can
     24   also display its own ticks and labels.
    2525
    26   It is allowed to synchronize the scale item with a disabled axis.
    27   In plots with vertical and horizontal scale items, it might be
    28   necessary to remove ticks at the intersections, by overloading
    29   updateScaleDiv().
     26   It is allowed to synchronize the scale item with a disabled axis.
     27   In plots with vertical and horizontal scale items, it might be
     28   necessary to remove ticks at the intersections, by overloading
     29   updateScaleDiv().
    3030
    31   The scale might be at a specific position (f.e 0.0) or it might be
    32   aligned to a canvas border.
     31   The scale might be at a specific position (f.e 0.0) or it might be
     32   aligned to a canvas border.
    3333
    34   \par Example
     34   \par Example
    3535    The following example shows how to replace the left axis, by a scale item
    3636    at the x position 0.0.
    3737    \code
    3838      QwtPlotScaleItem *scaleItem = new QwtPlotScaleItem( QwtScaleDraw::RightScale, 0.0 );
    39       scaleItem->setFont( plot->axisWidget( QwtPlot::yLeft )->font() );
     39      scaleItem->setFont( plot->axisWidget( QwtAxis::YLeft )->font() );
    4040      scaleItem->attach(plot);
    4141
    42       plot->enableAxis( QwtPlot::yLeft, false );
     42      plot->setAxisVisible( QwtAxis::YLeft, false );
    4343    \endcode
    44   \endpar
    45 */
     44 */
    4645
    47 class QWT_EXPORT QwtPlotScaleItem: public QwtPlotItem
     46class QWT_EXPORT QwtPlotScaleItem : public QwtPlotItem
    4847{
    49 public:
     48  public:
    5049    explicit QwtPlotScaleItem(
    5150        QwtScaleDraw::Alignment = QwtScaleDraw::BottomScale,
    … …  
    5453    virtual ~QwtPlotScaleItem();
    5554
    56     virtual int rtti() const;
     55    virtual int rtti() const QWT_OVERRIDE;
    5756
    5857    void setScaleDiv( const QwtScaleDiv& );
    … …  
    6261    bool isScaleDivFromAxis() const;
    6362
    64     void setPalette( const QPalette & );
     63    void setPalette( const QPalette& );
    6564    QPalette palette() const;
    6665
    … …  
    6867    QFont font() const;
    6968
    70     void setScaleDraw( QwtScaleDraw * );
     69    void setScaleDraw( QwtScaleDraw* );
    7170
    72     const QwtScaleDraw *scaleDraw() const;
    73     QwtScaleDraw *scaleDraw();
     71    const QwtScaleDraw* scaleDraw() const;
     72    QwtScaleDraw* scaleDraw();
    7473
    7574    void setPosition( double pos );
    … …  
    8180    void setAlignment( QwtScaleDraw::Alignment );
    8281
    83     virtual void draw( QPainter *,
    84         const QwtScaleMap &xMap, const QwtScaleMap &yMap,
    85         const QRectF &canvasRect ) const;
     82    virtual void draw( QPainter*,
     83        const QwtScaleMap& xMap, const QwtScaleMap& yMap,
     84        const QRectF& canvasRect ) const QWT_OVERRIDE;
    8685
    87     virtual void updateScaleDiv( const QwtScaleDiv &, const QwtScaleDiv & );
     86    virtual void updateScaleDiv(
     87        const QwtScaleDiv&, const QwtScaleDiv& ) QWT_OVERRIDE;
    8888
    89 private:
     89  private:
    9090    class PrivateData;
    91     PrivateData *d_data;
     91    PrivateData* m_data;
    9292};
    9393
Note: See TracChangeset for help on using the changeset viewer.