Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_slider.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (4 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_slider.h (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_slider.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 17 17 18 18 /*! 19 \brief The Slider Widget 19 \brief The Slider Widget 20 20 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. 24 24 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. 26 26 27 \image html sliders.png 28 */ 27 \image html sliders.png 28 */ 29 29 30 class QWT_EXPORT QwtSlider: public QwtAbstractSlider 30 class QWT_EXPORT QwtSlider : public QwtAbstractSlider 31 31 { 32 32 Q_OBJECT … … 35 35 36 36 Q_PROPERTY( Qt::Orientation orientation 37 READ orientation WRITE setOrientation )37 READ orientation WRITE setOrientation ) 38 38 Q_PROPERTY( ScalePosition scalePosition READ scalePosition 39 39 WRITE setScalePosition ) … … 46 46 Q_PROPERTY( int spacing READ spacing WRITE setSpacing ) 47 47 48 public: 48 public: 49 49 50 50 /*! 51 Position of the scale 52 \sa QwtSlider(), setScalePosition(), setOrientation() 51 Position of the scale 52 \sa QwtSlider(), setScalePosition(), setOrientation() 53 53 */ 54 54 enum ScalePosition … … 64 64 }; 65 65 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 ); 68 68 69 69 virtual ~QwtSlider(); … … 81 81 bool hasGroove() const; 82 82 83 void setHandleSize( const QSize & );83 void setHandleSize( const QSize& ); 84 84 QSize handleSize() const; 85 85 … … 90 90 int spacing() const; 91 91 92 virtual QSize sizeHint() const; 93 virtual QSize minimumSizeHint() const; 92 virtual QSize sizeHint() const QWT_OVERRIDE; 93 virtual QSize minimumSizeHint() const QWT_OVERRIDE; 94 94 95 void setScaleDraw( QwtScaleDraw * );96 const QwtScaleDraw *scaleDraw() const;95 void setScaleDraw( QwtScaleDraw* ); 96 const QwtScaleDraw* scaleDraw() const; 97 97 98 98 void setUpdateInterval( int ); 99 99 int updateInterval() const; 100 100 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; 104 104 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; 107 107 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; 114 114 115 virtual void scaleChange(); 115 virtual bool event( QEvent* ) QWT_OVERRIDE; 116 117 virtual void scaleChange() QWT_OVERRIDE; 116 118 117 119 QRect sliderRect() const; 118 120 QRect handleRect() const; 119 121 120 private: 121 QwtScaleDraw *scaleDraw();122 private: 123 QwtScaleDraw* scaleDraw(); 122 124 123 125 void layoutSlider( bool ); … … 125 127 126 128 class PrivateData; 127 PrivateData *d_data;129 PrivateData* m_data; 128 130 }; 129 131
Note:
See TracChangeset
for help on using the changeset viewer.
