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

Public Slots | |
| void | setMaximum (int maximum) |
| void | setMinimum (int minimum) |
| void | setRange (int minimum, int maximum) |
| void | setValue (int value) |
Signals | |
| void | editingFinished () |
| void | sliderMoved (int value) |
| void | valueChanged (int value) |
Public Member Functions | |
| SpinBox (QGraphicsWidget *parent=0) | |
| ~SpinBox () | |
| int | maximum () const |
| int | minimum () const |
| KIntSpinBox * | nativeWidget () const |
| void | setStyleSheet (const QString &stylesheet) |
| QString | styleSheet () |
| int | value () const |
Protected Member Functions | |
| void | changeEvent (QEvent *event) |
| void | focusOutEvent (QFocusEvent *event) |
| void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
| void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
| void | resizeEvent (QGraphicsSceneResizeEvent *event) |
Properties | |
| int | maximum |
| int | minimum |
| KIntSpinBox | nativeWidget |
| QGraphicsWidget | parentWidget |
| QString | styleSheet |
| int | value |
Detailed Description
Constructor & Destructor Documentation
| Plasma::SpinBox::SpinBox | ( | QGraphicsWidget * | parent = 0 | ) | [explicit] |
Definition at line 59 of file spinbox.cpp.
| Plasma::SpinBox::~SpinBox | ( | ) |
Definition at line 90 of file spinbox.cpp.
Member Function Documentation
| void Plasma::SpinBox::changeEvent | ( | QEvent * | event | ) | [protected] |
Definition at line 146 of file spinbox.cpp.
| void Plasma::SpinBox::editingFinished | ( | ) | [signal] |
This signal is emitted when editing is finished.
This happens when the spinbox loses focus and when enter is pressed.
| void Plasma::SpinBox::focusOutEvent | ( | QFocusEvent * | event | ) | [protected] |
Definition at line 200 of file spinbox.cpp.
| void Plasma::SpinBox::hoverEnterEvent | ( | QGraphicsSceneHoverEvent * | event | ) | [protected] |
Definition at line 152 of file spinbox.cpp.
| void Plasma::SpinBox::hoverLeaveEvent | ( | QGraphicsSceneHoverEvent * | event | ) | [protected] |
Definition at line 158 of file spinbox.cpp.
| int Plasma::SpinBox::maximum | ( | ) | const |
- Returns:
- the maximum value
| int Plasma::SpinBox::minimum | ( | ) | const |
- Returns:
- the minimum value
| void Plasma::SpinBox::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
Definition at line 184 of file spinbox.cpp.
| KIntSpinBox* Plasma::SpinBox::nativeWidget | ( | ) | const |
- Returns:
- the native widget wrapped by this SpinBox
| void Plasma::SpinBox::paint | ( | QPainter * | painter, |
| const QStyleOptionGraphicsItem * | option, | ||
| QWidget * | widget | ||
| ) | [protected] |
Definition at line 176 of file spinbox.cpp.
| void Plasma::SpinBox::resizeEvent | ( | QGraphicsSceneResizeEvent * | event | ) | [protected] |
Definition at line 164 of file spinbox.cpp.
| void Plasma::SpinBox::setMaximum | ( | int | maximum | ) | [slot] |
Sets the maximum value the slider can take.
Definition at line 96 of file spinbox.cpp.
| void Plasma::SpinBox::setMinimum | ( | int | minimum | ) | [slot] |
Sets the minimum value the slider can take.
Definition at line 106 of file spinbox.cpp.
| void Plasma::SpinBox::setRange | ( | int | minimum, |
| int | maximum | ||
| ) | [slot] |
Sets the minimum and maximum values the slider can take.
Definition at line 116 of file spinbox.cpp.
| void Plasma::SpinBox::setStyleSheet | ( | const QString & | stylesheet | ) |
Sets the stylesheet used to control the visual display of this SpinBox.
- stylesheet a CSS string
Definition at line 131 of file spinbox.cpp.
| void Plasma::SpinBox::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 121 of file spinbox.cpp.
| void Plasma::SpinBox::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 KIntSpinBox would be emitted. See the Qt documentation for more information.
| QString Plasma::SpinBox::styleSheet | ( | ) |
- Returns:
- the stylesheet currently used with this widget
| int Plasma::SpinBox::value | ( | ) | const |
- Returns:
- the current value
| void Plasma::SpinBox::valueChanged | ( | int | value | ) | [signal] |
This signal is emitted when the slider value has changed, with the new slider value as argument.
Property Documentation
QGraphicsWidget Plasma::SpinBox::parentWidget [read] |
The documentation for this class was generated from the following files:
KDE 4.6 API Reference