Inheritance diagram for QwtSlider:
QwtSlider is a slider widget which operates on an interval of type double. QwtSlider supports different layouts as well as a scale.
Public Types | |
enum | ScalePos { None, Left, Right, Top, Bottom } |
enum | BGSTYLE { BgTrough = 0x1, BgSlot = 0x2, BgBoth = BgTrough | BgSlot } |
Public Member Functions | |
QwtSlider (QWidget *parent, const char *name=0, Qt::Orientation=Horizontal, ScalePos=None, int bgStyle=BgTrough) | |
virtual void | setOrientation (Qt::Orientation) |
void | setBgStyle (BGSTYLE st) |
BGSTYLE | bgStyle () const |
void | setScalePos (ScalePos st) |
ScalePos | scalePos () const |
int | thumbLength () const |
int | thumbWidth () const |
int | borderWidth () const |
void | setThumbLength (int l) |
void | setThumbWidth (int w) |
void | setBorderWidth (int bw) |
void | setMargins (int x, int y) |
virtual QSize | sizeHint () const |
virtual QSize | minimumSizeHint () const |
virtual QSizePolicy | sizePolicy () const |
Protected Member Functions | |
virtual double | getValue (const QPoint &p) |
virtual void | getScrollMode (const QPoint &p, int &scrollMode, int &direction) |
void | draw (QPainter *p, const QRect &update_rect) |
virtual void | drawSlider (QPainter *p, const QRect &r) |
virtual void | drawThumb (QPainter *p, const QRect &, int pos) |
virtual void | resizeEvent (QResizeEvent *e) |
virtual void | paintEvent (QPaintEvent *e) |
virtual void | valueChange () |
virtual void | rangeChange () |
virtual void | scaleChange () |
virtual void | fontChange (const QFont &oldFont) |
void | layoutSlider (bool update=TRUE) |
int | xyPosition (double v) const |
|
Background style
|
|
Position of the scale
|
|
Constructor.
|
|
redraw the slider
|
|
Draw the slider into the specified rectangle.
|
|
Draw the thumb at a position.
|
|
Notify change in font.
|
|
Determine scrolling mode and direction.
Implements QwtSliderBase. |
|
Determine the value corresponding to a specified mouse location.
Implements QwtSliderBase. |
|
Recalculate the slider's geometry and layout based on.
|
|
Return a minimum size hint.
|
|
Qt paint event.
|
|
Notify change of range.
Reimplemented from QwtDblRange. |
|
Qt resize event.
|
|
Notify changed scale.
Implements QwtScaleIf. |
|
Change the slider's border width.
|
|
Set distances between the widget's border and internals.
|
|
Set the orientation.
|
|
Set the slider's thumb length.
|
|
Change the width of the thumb.
|
|
|
|
|
|
Notify change of value.
Reimplemented from QwtSliderBase. |
|
Find the x/y position for a given value v.
|