#include <slider.h>
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.
- Author
- David Jarvie djarv.nosp@m.ie@k.nosp@m.de.or.nosp@m.g
Definition at line 39 of file slider.h.
| 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.
| bool Slider::isReadOnly |
( |
| ) |
const |
|
inline |
Returns true if the slider is read only.
Definition at line 63 of file slider.h.
| void Slider::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
protectedvirtual |
| void Slider::keyReleaseEvent |
( |
QKeyEvent * |
e | ) |
|
|
protectedvirtual |
| void Slider::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
| void Slider::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
| void Slider::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
| 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.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:21 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.