53 Q_PROPERTY( Qt::Orientation orientation
54 READ orientation WRITE setOrientation )
56 WRITE setScalePosition )
58 Q_PROPERTY(
bool trough READ hasTrough WRITE setTrough )
59 Q_PROPERTY(
bool groove READ hasGroove WRITE setGroove )
61 Q_PROPERTY( QSize handleSize READ handleSize WRITE setHandleSize )
62 Q_PROPERTY(
int borderWidth READ borderWidth WRITE setBorderWidth )
63 Q_PROPERTY(
int spacing READ spacing WRITE setSpacing )
83 explicit QwtSlider( QWidget* parent = NULL );
84 explicit QwtSlider( Qt::Orientation, QWidget* parent = NULL );
88 void setOrientation( Qt::Orientation );
89 Qt::Orientation orientation()
const;
91 void setScalePosition( ScalePosition );
92 ScalePosition scalePosition()
const;
94 void setTrough(
bool );
95 bool hasTrough()
const;
97 void setGroove(
bool );
98 bool hasGroove()
const;
100 void setHandleSize(
const QSize& );
101 QSize handleSize()
const;
103 void setBorderWidth(
int );
104 int borderWidth()
const;
106 void setSpacing(
int );
109 virtual QSize sizeHint() const QWT_OVERRIDE;
110 virtual QSize minimumSizeHint() const QWT_OVERRIDE;
115 void setUpdateInterval(
int );
116 int updateInterval() const;
119 virtual
double scrolledTo( const QPoint& ) const QWT_OVERRIDE;
120 virtual
bool isScrollPosition( const QPoint& ) const QWT_OVERRIDE;
122 virtual
void drawSlider ( QPainter*, const QRect& ) const;
123 virtual
void drawHandle( QPainter*, const QRect&,
int pos ) const;
125 virtual
void mousePressEvent( QMouseEvent* ) QWT_OVERRIDE;
126 virtual
void mouseReleaseEvent( QMouseEvent* ) QWT_OVERRIDE;
127 virtual
void resizeEvent( QResizeEvent* ) QWT_OVERRIDE;
128 virtual
void paintEvent ( QPaintEvent* ) QWT_OVERRIDE;
129 virtual
void changeEvent( QEvent* ) QWT_OVERRIDE;
130 virtual
void timerEvent( QTimerEvent* ) QWT_OVERRIDE;
132 virtual
bool event( QEvent* ) QWT_OVERRIDE;
134 virtual
void scaleChange() QWT_OVERRIDE;
136 QRect sliderRect() const;
137 QRect handleRect() const;
142 void layoutSlider(
bool );
143 void initSlider( Qt::Orientation );