48 Q_PROPERTY(
KnobStyle knobStyle READ knobStyle WRITE setKnobStyle )
49 Q_PROPERTY(
int knobWidth READ knobWidth WRITE setKnobWidth )
50 Q_PROPERTY( Qt::Alignment alignment READ alignment WRITE setAlignment )
51 Q_PROPERTY(
double totalAngle READ totalAngle WRITE setTotalAngle )
52 Q_PROPERTY(
int numTurns READ numTurns WRITE setNumTurns )
53 Q_PROPERTY(
MarkerStyle markerStyle READ markerStyle WRITE setMarkerStyle )
54 Q_PROPERTY(
int markerSize READ markerSize WRITE setMarkerSize )
55 Q_PROPERTY(
int borderWidth READ borderWidth WRITE setBorderWidth )
122 explicit QwtKnob( QWidget* parent = NULL );
125 void setAlignment( Qt::Alignment );
126 Qt::Alignment alignment()
const;
128 void setKnobWidth(
int );
129 int knobWidth()
const;
131 void setNumTurns(
int );
132 int numTurns()
const;
134 void setTotalAngle (
double angle );
135 double totalAngle()
const;
137 void setKnobStyle( KnobStyle );
138 KnobStyle knobStyle()
const;
140 void setBorderWidth(
int );
141 int borderWidth()
const;
143 void setMarkerStyle( MarkerStyle );
144 MarkerStyle markerStyle()
const;
146 void setMarkerSize(
int );
147 int markerSize()
const;
149 virtual QSize sizeHint() const QWT_OVERRIDE;
150 virtual QSize minimumSizeHint() const QWT_OVERRIDE;
157 QRect knobRect() const;
160 virtual
void paintEvent( QPaintEvent* ) QWT_OVERRIDE;
161 virtual
void changeEvent( QEvent* ) QWT_OVERRIDE;
163 virtual
void drawKnob( QPainter*, const QRectF& ) const;
165 virtual
void drawFocusIndicator( QPainter* ) const;
167 virtual
void drawMarker( QPainter*,
168 const QRectF&,
double angle ) const;
170 virtual
double scrolledTo( const QPoint& ) const QWT_OVERRIDE;
171 virtual
bool isScrollPosition( const QPoint& ) const QWT_OVERRIDE;