kalarm/lib
Slider Class Reference
#include <slider.h>
Detailed Description
A QSlider with read-only option.The Slider class is a QSlider with a read-only option.
The widget may be set as read-only. This has the same effect as disabling it, except that its appearance is unchanged.
Definition at line 37 of file slider.h.
Public Member Functions | |
Slider (QWidget *parent=0, const char *name=0) | |
Slider (Orientation orient, QWidget *parent=0, const char *name=0) | |
Slider (int minValue, int maxValue, int pageStep, int value, Orientation orient, QWidget *parent=0, const char *name=0) | |
bool | isReadOnly () const |
virtual void | setReadOnly (bool readOnly) |
Protected Member Functions | |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
virtual void | mouseMoveEvent (QMouseEvent *) |
virtual void | keyPressEvent (QKeyEvent *) |
virtual void | keyReleaseEvent (QKeyEvent *) |
Properties | |
bool | readOnly [] |
Constructor & Destructor Documentation
Slider::Slider | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 | |||
) |
Constructor.
- Parameters:
-
parent The parent object of this widget. name The name of this widget.
Definition at line 24 of file slider.cpp.
Slider::Slider | ( | Orientation | orient, | |
QWidget * | parent = 0 , |
|||
const char * | name = 0 | |||
) |
Constructor.
- Parameters:
-
orient The orientation of the slider, either Qt::Horizonal or Qt::Vertical. parent The parent object of this widget. name The name of this widget.
Definition at line 29 of file slider.cpp.
Slider::Slider | ( | int | minValue, | |
int | maxValue, | |||
int | pageStep, | |||
int | value, | |||
Orientation | orient, | |||
QWidget * | parent = 0 , |
|||
const char * | name = 0 | |||
) |
Constructor.
- Parameters:
-
minValue The minimum value which the slider can have. maxValue The maximum value which the slider can have. pageStep The page step increment. value The initial value for the slider. orient The orientation of the slider, either Qt::Horizonal or Qt::Vertical. parent The parent object of this widget. name The name of this widget.
Definition at line 34 of file slider.cpp.
Member Function Documentation
bool Slider::isReadOnly | ( | ) | const [inline] |
void Slider::setReadOnly | ( | bool | readOnly | ) | [virtual] |
Sets whether the slider is read-only for the user.
- Parameters:
-
readOnly True to set the widget read-only, false to set it read-write.
Definition at line 43 of file slider.cpp.
The documentation for this class was generated from the following files: