|
|
KSelector is the base class for other widgets which provides the ability to choose from a one-dimensional range of values. An example is the KGradientSelector which allows to choose from a range of colors.
A custom drawing routine for the widget surface has to be provided by the subclass.
| KSelector ( QWidget *parent=0, const char *name=0 )
| KSelector |
Constructs a horizontal one-dimensional selection widget.
| KSelector ( Orientation o, QWidget *parent = 0L, const char *name = 0L )
| KSelector |
Constructs a one-dimensional selection widget with a given orientation.
| ~KSelector ()
| ~KSelector |
| Orientation orientation ()
| orientation |
[const]
Returns: the orientation of the widget.
| QRect contentsRect ()
| contentsRect |
[const]
Returns: the rectangle on which subclasses should draw.
| void setIndent ( bool i )
| setIndent |
Sets the indent option of the widget to i. This determines whether a shaded frame is drawn.
| bool indent ()
| indent |
[const]
Returns: whether the indent option is set.
| void setValue (int value)
| setValue |
Sets the value.
| int value ()
| value |
[const]
Returns: the value.
| void setMinValue (int value)
| setMinValue |
Sets the min value.
| int minValue ()
| minValue |
[const]
Returns: the min value.
| void setMaxValue (int value)
| setMaxValue |
Sets the max value.
| int maxValue ()
| maxValue |
[const]
Returns: the max value.
| void valueChanged ( int value )
| valueChanged |
[signal]
This signal is emitted whenever the user chooses a value, e.g. by clicking with the mouse on the widget.
| void drawContents ( QPainter * )
| drawContents |
[protected virtual]
Override this function to draw the contents of the control. The default implementation does nothing.
Draw only within contentsRect().
| void drawArrow ( QPainter *painter, bool show, const QPoint &pos )
| drawArrow |
[protected virtual]
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.
| void valueChange ()
| valueChange |
[protected virtual]
| void paintEvent ( QPaintEvent * )
| paintEvent |
[protected virtual]
| void mousePressEvent ( QMouseEvent *e )
| mousePressEvent |
[protected virtual]
| void mouseMoveEvent ( QMouseEvent *e )
| mouseMoveEvent |
[protected virtual]
| void virtual_hook ( int id, void* data )
| virtual_hook |
[protected virtual]
| Generated by: root on sparc64.ports.openbsd.org on Sun Sep 14 00:03:21 2003, using kdoc 2.0a54. |