13 #include "qwt_global.h"
14 #include "qwt_abstract_slider.h"
36 Q_PROPERTY( Qt::Orientation orientation
37 READ orientation WRITE setOrientation )
39 WRITE setScalePosition )
41 Q_PROPERTY(
bool trough READ hasTrough WRITE setTrough )
42 Q_PROPERTY(
bool groove READ hasGroove WRITE setGroove )
44 Q_PROPERTY( QSize handleSize READ handleSize WRITE setHandleSize )
45 Q_PROPERTY(
int borderWidth READ borderWidth WRITE setBorderWidth )
46 Q_PROPERTY(
int spacing READ spacing WRITE setSpacing )
67 explicit QwtSlider( QWidget *parent = NULL );
68 explicit QwtSlider( Qt::Orientation, QWidget *parent = NULL );
72 void setOrientation( Qt::Orientation );
73 Qt::Orientation orientation()
const;
75 void setScalePosition( ScalePosition );
76 ScalePosition scalePosition()
const;
78 void setTrough(
bool );
79 bool hasTrough()
const;
81 void setGroove(
bool );
82 bool hasGroove()
const;
84 void setHandleSize(
const QSize & );
85 QSize handleSize()
const;
87 void setBorderWidth(
int bw );
88 int borderWidth()
const;
90 void setSpacing(
int );
93 virtual QSize sizeHint()
const;
94 virtual QSize minimumSizeHint()
const;
99 void setUpdateInterval(
int );
100 int updateInterval()
const;
103 virtual double scrolledTo(
const QPoint & )
const;
106 virtual void drawSlider ( QPainter *,
const QRect & )
const;
107 virtual void drawHandle( QPainter *,
const QRect &,
int pos )
const;
111 virtual void resizeEvent( QResizeEvent * );
112 virtual void paintEvent ( QPaintEvent * );
113 virtual void changeEvent( QEvent * );
114 virtual void timerEvent( QTimerEvent * );
118 QRect sliderRect()
const;
119 QRect handleRect()
const;
124 void layoutSlider(
bool );
125 void initSlider( Qt::Orientation );