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 )
    66     explicit QwtSlider( QWidget *parent = NULL );
    67     explicit QwtSlider( Qt::Orientation, QWidget *parent = NULL );
    71     void setOrientation( Qt::Orientation );
    72     Qt::Orientation orientation() 
const;
    77     void setTrough( 
bool );
    78     bool hasTrough() 
const;
    80     void setGroove( 
bool );
    81     bool hasGroove() 
const;
    83     void setHandleSize( 
const QSize & );
    84     QSize handleSize() 
const;
    86     void setBorderWidth( 
int bw );
    87     int borderWidth() 
const;
    89     void setSpacing( 
int );
    92     virtual QSize sizeHint() 
const;
    93     virtual QSize minimumSizeHint() 
const;
    98     void setUpdateInterval( 
int );
    99     int updateInterval() 
const;
   102     virtual double scrolledTo( 
const QPoint & ) 
const;
   105     virtual void drawSlider ( QPainter *, 
const QRect & ) 
const;
   106     virtual void drawHandle( QPainter *, 
const QRect &, 
int pos ) 
const;
   110     virtual void resizeEvent( QResizeEvent * );
   111     virtual void paintEvent ( QPaintEvent * );
   112     virtual void changeEvent( QEvent * );
   113     virtual void timerEvent( QTimerEvent * );
   117     QRect sliderRect() 
const;
   118     QRect handleRect() 
const;
   123     void layoutSlider( 
bool );
   124     void initSlider( Qt::Orientation );
 A class for drawing scales. 
Definition: qwt_scale_draw.h:31
The slider has no scale. 
Definition: qwt_slider.h:57
virtual double scrolledTo(const QPoint &pos) const  =0
Determine the value for a new position of the movable part of the slider. 
virtual void mousePressEvent(QMouseEvent *)
Definition: qwt_abstract_slider.cpp:198
virtual bool isScrollPosition(const QPoint &pos) const  =0
Determine what to do when the user presses a mouse button. 
The scale is right of a vertical or below a horizontal slider. 
Definition: qwt_slider.h:60
virtual void scaleChange()
Definition: qwt_abstract_slider.cpp:801
An abstract base class for slider widgets with a scale. 
Definition: qwt_abstract_slider.h:32
ScalePosition
Definition: qwt_slider.h:54
virtual void mouseReleaseEvent(QMouseEvent *)
Definition: qwt_abstract_slider.cpp:268
The Slider Widget. 
Definition: qwt_slider.h:30