kalarm/lib
Slider Class Reference
#include <slider.h>
Inheritance diagram for Slider:

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 39 of file slider.h.
Public Member Functions | |
| bool | isReadOnly () const |
| virtual void | setReadOnly (bool readOnly) |
| Slider (int minValue, int maxValue, int pageStep, Qt::Orientation orient, QWidget *parent=0) | |
| Slider (Qt::Orientation orient, QWidget *parent=0) | |
| Slider (QWidget *parent=0) | |
Protected Member Functions | |
| virtual void | keyPressEvent (QKeyEvent *) |
| virtual void | keyReleaseEvent (QKeyEvent *) |
| virtual void | mouseMoveEvent (QMouseEvent *) |
| virtual void | mousePressEvent (QMouseEvent *) |
| virtual void | mouseReleaseEvent (QMouseEvent *) |
Properties | |
| bool | readOnly |
Constructor & Destructor Documentation
| Slider::Slider | ( | QWidget * | parent = 0 |
) | [explicit] |
Constructor.
- Parameters:
-
parent The parent object of this widget.
Definition at line 25 of file slider.cpp.
| Slider::Slider | ( | Qt::Orientation | orient, | |
| QWidget * | parent = 0 | |||
| ) | [explicit] |
Constructor.
- Parameters:
-
orient The orientation of the slider, either Qt::Horizonal or Qt::Vertical. parent The parent object of this widget.
Definition at line 30 of file slider.cpp.
| Slider::Slider | ( | int | minValue, | |
| int | maxValue, | |||
| int | pageStep, | |||
| Qt::Orientation | orient, | |||
| QWidget * | parent = 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. orient The orientation of the slider, either Qt::Horizonal or Qt::Vertical. parent The parent object of this widget.
Definition at line 35 of file slider.cpp.
Member Function Documentation
| bool Slider::isReadOnly | ( | ) | const [inline] |
| void Slider::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Definition at line 79 of file slider.cpp.
| void Slider::keyReleaseEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Definition at line 85 of file slider.cpp.
| void Slider::mouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 73 of file slider.cpp.
| void Slider::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 56 of file slider.cpp.
| void Slider::mouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Definition at line 67 of file slider.cpp.
| 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 47 of file slider.cpp.
Property Documentation
The documentation for this class was generated from the following files:
KDE 4.2 API Reference