Plasma
Plasma::Slider Class Reference
Provides a plasma-themed QSlider. More...
#include <Plasma/Widgets/Slider>

Public Slots | |
void | setMaximum (int maximum) |
void | setMinimum (int minimum) |
void | setOrientation (Qt::Orientation orientation) |
void | setRange (int minimum, int maximum) |
void | setValue (int value) |
Signals | |
void | sliderMoved (int value) |
void | valueChanged (int value) |
Public Member Functions | |
int | maximum () const |
int | minimum () const |
QSlider * | nativeWidget () const |
Qt::Orientation | orientation () const |
void | setStyleSheet (const QString &stylesheet) |
Slider (QGraphicsWidget *parent=0) | |
QString | styleSheet () |
int | value () const |
~Slider () | |
Protected Member Functions | |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
void | wheelEvent (QGraphicsSceneWheelEvent *event) |
Properties | |
int | maximum |
int | minimum |
QSlider | nativeWidget |
Qt::Orientation | orientation |
QGraphicsWidget | parentWidget |
QString | styleSheet |
int | value |
Detailed Description
Provides a plasma-themed QSlider.Definition at line 39 of file slider.h.
Constructor & Destructor Documentation
Plasma::Slider::Slider | ( | QGraphicsWidget * | parent = 0 |
) | [explicit] |
Definition at line 50 of file slider.cpp.
Plasma::Slider::~Slider | ( | ) |
Definition at line 71 of file slider.cpp.
Member Function Documentation
int Plasma::Slider::maximum | ( | ) | const |
- Returns:
- the maximum value
int Plasma::Slider::minimum | ( | ) | const |
- Returns:
- the minimum value
Qt::Orientation Plasma::Slider::orientation | ( | ) | const |
- Returns:
- the orientation of the slider
void Plasma::Slider::paint | ( | QPainter * | painter, | |
const QStyleOptionGraphicsItem * | option, | |||
QWidget * | widget | |||
) | [protected] |
Definition at line 76 of file slider.cpp.
void Plasma::Slider::setMaximum | ( | int | maximum | ) | [slot] |
void Plasma::Slider::setMinimum | ( | int | minimum | ) | [slot] |
void Plasma::Slider::setOrientation | ( | Qt::Orientation | orientation | ) | [slot] |
void Plasma::Slider::setRange | ( | int | minimum, | |
int | maximum | |||
) | [slot] |
void Plasma::Slider::setStyleSheet | ( | const QString & | stylesheet | ) |
Sets the stylesheet used to control the visual display of this Slider.
- stylesheet a CSS string
Definition at line 181 of file slider.cpp.
void Plasma::Slider::setValue | ( | int | value | ) | [slot] |
Sets the value of the slider.
If it is outside the range specified by minimum() and maximum(), it will be adjusted to fit.
Definition at line 161 of file slider.cpp.
void Plasma::Slider::sliderMoved | ( | int | value | ) | [signal] |
This signal is emitted when the user drags the slider.
In fact, it is emitted whenever the sliderMoved(int) signal of QSlider would be emitted. See the Qt documentation for more information.
QString Plasma::Slider::styleSheet | ( | ) |
- Returns:
- the stylesheet currently used with this widget
int Plasma::Slider::value | ( | ) | const |
- Returns:
- the current value
void Plasma::Slider::valueChanged | ( | int | value | ) | [signal] |
This signal is emitted when the slider value has changed, with the new slider value as argument.
void Plasma::Slider::wheelEvent | ( | QGraphicsSceneWheelEvent * | event | ) | [protected] |
Definition at line 129 of file slider.cpp.
Property Documentation
QGraphicsWidget Plasma::Slider::parentWidget [read] |
The documentation for this class was generated from the following files: