#include <kselect.h>
Inheritance diagram for KSelector:

Signals | |
| void | valueChanged (int value) |
Public Methods | |
| KSelector (QWidget *parent=0, const char *name=0) | |
| KSelector (Orientation o, QWidget *parent=0L, const char *name=0L) | |
| Orientation | orientation () const |
| QRect | contentsRect () const |
| void | setIndent (bool i) |
| bool | indent () const |
| void | setValue (int value) |
| int | value () const |
| void | setMinValue (int value) |
| int | minValue () const |
| void | setMaxValue (int value) |
| int | maxValue () const |
Protected Methods | |
| virtual void | drawContents (QPainter *) |
| virtual void | drawArrow (QPainter *painter, bool show, const QPoint &pos) |
| virtual void | valueChange () |
| virtual void | paintEvent (QPaintEvent *) |
| virtual void | mousePressEvent (QMouseEvent *e) |
| virtual void | mouseMoveEvent (QMouseEvent *e) |
A custom drawing routine for the widget surface has to be provided by the subclass.
Definition at line 142 of file kselect.h.
|
||||||||||||
|
Constructs a horizontal one-dimensional selection widget. |
|
||||||||||||||||
|
Constructs a one-dimensional selection widget with a given orientation. |
|
|
|
|
||||||||||||||||
|
Override this function to draw the cursor which indicates the current value. This function is always called twice, once with argument show=false to clear the old cursor, once with argument show=true to draw the new one. |
|
|
Override this function to draw the contents of the control. The default implementation does nothing. Draw only within contentsRect(). Reimplemented in KValueSelector, and KGradientSelector. |
|
|
|
|
|
|
|
|
|
|
|
@reimplemented |
|
|
@reimplemented |
|
|
|
|
|
@reimplemented |
|
|
Sets the indent option of the widget to i. This determines whether a shaded frame is drawn. |
|
|
Sets the max value. Definition at line 214 of file kselect.h. References value(). |
|
|
Sets the min value. Definition at line 202 of file kselect.h. References value(). |
|
|
Sets the value. Definition at line 190 of file kselect.h. References value(). |
|
|
Definition at line 196 of file kselect.h. Referenced by setMaxValue(), setMinValue(), and setValue(). |
|
|
@reimplemented |
|
|
This signal is emitted whenever the user chooses a value, e.g. by clicking with the mouse on the widget. |
1.2.18