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


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

deprecated functions exchanged libs updated

File:
1 edited

Legend:

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

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1717
    1818/*!
    19   \brief The Slider Widget
     19   \brief The Slider Widget
    2020
    21   QwtSlider is a slider widget which operates on an interval
    22   of type double. Its position is related to a scale showing
    23   the current value.
     21   QwtSlider is a slider widget which operates on an interval
     22   of type double. Its position is related to a scale showing
     23   the current value.
    2424
    25   The slider can be customized by having a through, a groove - or both.
     25   The slider can be customized by having a through, a groove - or both.
    2626
    27   \image html sliders.png
    28 */
     27   \image html sliders.png
     28 */
    2929
    30 class QWT_EXPORT QwtSlider: public QwtAbstractSlider
     30class QWT_EXPORT QwtSlider : public QwtAbstractSlider
    3131{
    3232    Q_OBJECT
    … …  
    3535
    3636    Q_PROPERTY( Qt::Orientation orientation
    37                 READ orientation WRITE setOrientation )
     37        READ orientation WRITE setOrientation )
    3838    Q_PROPERTY( ScalePosition scalePosition READ scalePosition
    3939        WRITE setScalePosition )
    … …  
    4646    Q_PROPERTY( int spacing READ spacing WRITE setSpacing )
    4747
    48 public:
     48  public:
    4949
    5050    /*!
    51       Position of the scale
    52       \sa QwtSlider(), setScalePosition(), setOrientation()
     51       Position of the scale
     52       \sa QwtSlider(), setScalePosition(), setOrientation()
    5353     */
    5454    enum ScalePosition
    … …  
    6464    };
    6565
    66     explicit QwtSlider( QWidget *parent = NULL );
    67     explicit QwtSlider( Qt::Orientation, QWidget *parent = NULL );
     66    explicit QwtSlider( QWidget* parent = NULL );
     67    explicit QwtSlider( Qt::Orientation, QWidget* parent = NULL );
    6868
    6969    virtual ~QwtSlider();
    … …  
    8181    bool hasGroove() const;
    8282
    83     void setHandleSize( const QSize & );
     83    void setHandleSize( const QSize& );
    8484    QSize handleSize() const;
    8585
    … …  
    9090    int spacing() const;
    9191
    92     virtual QSize sizeHint() const;
    93     virtual QSize minimumSizeHint() const;
     92    virtual QSize sizeHint() const QWT_OVERRIDE;
     93    virtual QSize minimumSizeHint() const QWT_OVERRIDE;
    9494
    95     void setScaleDraw( QwtScaleDraw * );
    96     const QwtScaleDraw *scaleDraw() const;
     95    void setScaleDraw( QwtScaleDraw* );
     96    const QwtScaleDraw* scaleDraw() const;
    9797
    9898    void setUpdateInterval( int );
    9999    int updateInterval() const;
    100100
    101 protected:
    102     virtual double scrolledTo( const QPoint & ) const;
    103     virtual bool isScrollPosition( const QPoint & ) const;
     101  protected:
     102    virtual double scrolledTo( const QPoint& ) const QWT_OVERRIDE;
     103    virtual bool isScrollPosition( const QPoint& ) const QWT_OVERRIDE;
    104104
    105     virtual void drawSlider ( QPainter *, const QRect & ) const;
    106     virtual void drawHandle( QPainter *, const QRect &, int pos ) const;
     105    virtual void drawSlider ( QPainter*, const QRect& ) const;
     106    virtual void drawHandle( QPainter*, const QRect&, int pos ) const;
    107107
    108     virtual void mousePressEvent( QMouseEvent * );
    109     virtual void mouseReleaseEvent( QMouseEvent * );
    110     virtual void resizeEvent( QResizeEvent * );
    111     virtual void paintEvent ( QPaintEvent * );
    112     virtual void changeEvent( QEvent * );
    113     virtual void timerEvent( QTimerEvent * );
     108    virtual void mousePressEvent( QMouseEvent* ) QWT_OVERRIDE;
     109    virtual void mouseReleaseEvent( QMouseEvent* ) QWT_OVERRIDE;
     110    virtual void resizeEvent( QResizeEvent* ) QWT_OVERRIDE;
     111    virtual void paintEvent ( QPaintEvent* ) QWT_OVERRIDE;
     112    virtual void changeEvent( QEvent* ) QWT_OVERRIDE;
     113    virtual void timerEvent( QTimerEvent* ) QWT_OVERRIDE;
    114114
    115     virtual void scaleChange();
     115    virtual bool event( QEvent* ) QWT_OVERRIDE;
     116
     117    virtual void scaleChange() QWT_OVERRIDE;
    116118
    117119    QRect sliderRect() const;
    118120    QRect handleRect() const;
    119121
    120 private:
    121     QwtScaleDraw *scaleDraw();
     122  private:
     123    QwtScaleDraw* scaleDraw();
    122124
    123125    void layoutSlider( bool );
    … …  
    125127
    126128    class PrivateData;
    127     PrivateData *d_data;
     129    PrivateData* m_data;
    128130};
    129131
Note: See TracChangeset for help on using the changeset viewer.