Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_knob.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_knob.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 Knob Widget
     19   \brief The Knob Widget
    2020
    21   The QwtKnob widget imitates look and behavior of a volume knob on a radio.
    22   It looks similar to QDial - not to QwtDial.
     21   The QwtKnob widget imitates look and behavior of a volume knob on a radio.
     22   It looks similar to QDial - not to QwtDial.
    2323
    24   The value range of a knob might be divided into several turns.
     24   The value range of a knob might be divided into several turns.
    2525
    26   The layout of the knob depends on the knobWidth().
     26   The layout of the knob depends on the knobWidth().
    2727
    28   - width > 0
     28   - width > 0
    2929    The diameter of the knob is fixed and the knob is aligned
    3030    according to the alignment() flags inside of the contentsRect().
    3131
    32   - width <= 0
     32   - width <= 0
    3333    The knob is extended to the minimum of width/height of the contentsRect()
    3434    and aligned in the other direction according to alignment().
    3535
    36   Setting a fixed knobWidth() is helpful to align several knobs with different
    37   scale labels.
     36   Setting a fixed knobWidth() is helpful to align several knobs with different
     37   scale labels.
    3838
    39   \image html knob.png
    40 */
     39   \image html knob.png
     40 */
    4141
    42 class QWT_EXPORT QwtKnob: public QwtAbstractSlider
     42class QWT_EXPORT QwtKnob : public QwtAbstractSlider
    4343{
    4444    Q_OBJECT
    … …  
    5555    Q_PROPERTY( int borderWidth READ borderWidth WRITE setBorderWidth )
    5656
    57 public:
     57  public:
    5858    /*!
    5959       \brief Style of the knob surface
    … …  
    7373
    7474        /*!
    75           Build a gradient from QPalette::Midlight, QPalette::Button
    76           and QPalette::Midlight
     75           Build a gradient from QPalette::Midlight, QPalette::Button
     76           and QPalette::Midlight
    7777         */
    7878        Sunken,
    7979
    8080        /*!
    81           Build a radial gradient from QPalette::Button
    82           like it is used for QDial in various Qt styles.
     81           Build a radial gradient from QPalette::Button
     82           like it is used for QDial in various Qt styles.
    8383         */
    8484        Styled
    … …  
    9292
    9393        \sa setMarkerStyle(), setMarkerSize()
    94     */
     94     */
    9595    enum MarkerStyle
    9696    {
    … …  
    108108
    109109        /*!
    110           Draw a raised ellipse with a gradient build from
    111           QPalette::Light and QPalette::Mid
     110           Draw a raised ellipse with a gradient build from
     111           QPalette::Light and QPalette::Mid
    112112         */
    113113        Nub,
    114114
    115115        /*!
    116           Draw a sunken ellipse with a gradient build from
    117           QPalette::Light and QPalette::Mid
     116           Draw a sunken ellipse with a gradient build from
     117           QPalette::Light and QPalette::Mid
    118118         */
    119119        Notch
    … …  
    147147    int markerSize() const;
    148148
    149     virtual QSize sizeHint() const;
    150     virtual QSize minimumSizeHint() const;
     149    virtual QSize sizeHint() const QWT_OVERRIDE;
     150    virtual QSize minimumSizeHint() const QWT_OVERRIDE;
    151151
    152     void setScaleDraw( QwtRoundScaleDraw * );
     152    void setScaleDraw( QwtRoundScaleDraw* );
    153153
    154     const QwtRoundScaleDraw *scaleDraw() const;
    155     QwtRoundScaleDraw *scaleDraw();
     154    const QwtRoundScaleDraw* scaleDraw() const;
     155    QwtRoundScaleDraw* scaleDraw();
    156156
    157157    QRect knobRect() const;
    158158
    159 protected:
    160     virtual void paintEvent( QPaintEvent * );
    161     virtual void changeEvent( QEvent * );
     159  protected:
     160    virtual void paintEvent( QPaintEvent* ) QWT_OVERRIDE;
     161    virtual void changeEvent( QEvent* ) QWT_OVERRIDE;
    162162
    163     virtual void drawKnob( QPainter *, const QRectF & ) const;
     163    virtual void drawKnob( QPainter*, const QRectF& ) const;
    164164
    165     virtual void drawFocusIndicator( QPainter * ) const;
     165    virtual void drawFocusIndicator( QPainter* ) const;
    166166
    167     virtual void drawMarker( QPainter *,
    168         const QRectF &, double angle ) const;
     167    virtual void drawMarker( QPainter*,
     168        const QRectF&, double angle ) const;
    169169
    170     virtual double scrolledTo( const QPoint & ) const;
    171     virtual bool isScrollPosition( const QPoint & ) const;
     170    virtual double scrolledTo( const QPoint& ) const QWT_OVERRIDE;
     171    virtual bool isScrollPosition( const QPoint& ) const QWT_OVERRIDE;
    172172
    173 private:
     173  private:
    174174    class PrivateData;
    175     PrivateData *d_data;
     175    PrivateData* m_data;
    176176};
    177177
Note: See TracChangeset for help on using the changeset viewer.