Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_knob.h
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_knob.h
r8127 r9383 26 26 The layout of the knob depends on the knobWidth(). 27 27 28 - width > 0 28 - width > 0 29 29 The diameter of the knob is fixed and the knob is aligned 30 according to the alignment() flags inside of the contentsRect(). 30 according to the alignment() flags inside of the contentsRect(). 31 31 32 32 - width <= 0 … … 36 36 Setting a fixed knobWidth() is helpful to align several knobs with different 37 37 scale labels. 38 38 39 39 \image html knob.png 40 40 */ … … 56 56 57 57 public: 58 /*! 58 /*! 59 59 \brief Style of the knob surface 60 60 … … 72 72 Raised, 73 73 74 /*! 74 /*! 75 75 Build a gradient from QPalette::Midlight, QPalette::Button 76 76 and QPalette::Midlight … … 78 78 Sunken, 79 79 80 /*! 80 /*! 81 81 Build a radial gradient from QPalette::Button 82 82 like it is used for QDial in various Qt styles. … … 87 87 /*! 88 88 \brief Marker type 89 89 90 90 The marker indicates the current value on the knob 91 91 The default setting is a Notch marker. … … 93 93 \sa setMarkerStyle(), setMarkerSize() 94 94 */ 95 enum MarkerStyle 96 { 95 enum MarkerStyle 96 { 97 97 //! Don't paint any marker 98 98 NoMarker = -1, 99 99 100 100 //! Paint a single tick in QPalette::ButtonText color 101 Tick, 101 Tick, 102 102 103 103 //! Paint a triangle in QPalette::ButtonText color 104 Triangle, 104 Triangle, 105 105 106 106 //! Paint a circle in QPalette::ButtonText color 107 Dot, 107 Dot, 108 108 109 /*! 109 /*! 110 110 Draw a raised ellipse with a gradient build from 111 111 QPalette::Light and QPalette::Mid 112 */ 113 Nub, 112 */ 113 Nub, 114 114 115 /*! 115 /*! 116 116 Draw a sunken ellipse with a gradient build from 117 117 QPalette::Light and QPalette::Mid 118 */ 119 Notch 118 */ 119 Notch 120 120 }; 121 121 … … 138 138 KnobStyle knobStyle() const; 139 139 140 void setBorderWidth( int bw);140 void setBorderWidth( int ); 141 141 int borderWidth() const; 142 142 … … 165 165 virtual void drawFocusIndicator( QPainter * ) const; 166 166 167 virtual void drawMarker( QPainter *, 168 const QRectF &, double a rc) const;167 virtual void drawMarker( QPainter *, 168 const QRectF &, double angle ) const; 169 169 170 170 virtual double scrolledTo( const QPoint & ) const;
Note:
See TracChangeset
for help on using the changeset viewer.