#include <Plasma/Widgets/ScrollBar>
Provides a plasma-themed QScrollBar.
Definition at line 39 of file scrollbar.h.
§ ScrollBar()
Creates a scrollbar; the default orientation is vertical.
Definition at line 38 of file scrollbar.cpp.
§ ~ScrollBar()
Plasma::ScrollBar::~ScrollBar |
( |
| ) |
|
§ contextMenuEvent()
void Plasma::ScrollBar::contextMenuEvent |
( |
QGraphicsSceneContextMenuEvent * |
event | ) |
|
|
protected |
§ maximum()
int Plasma::ScrollBar::maximum |
( |
| ) |
const |
- Returns
- the maximum value bound of this ScrollBar
§ minimum()
int Plasma::ScrollBar::minimum |
( |
| ) |
const |
- Returns
- the minimum value bound of this ScrollBar
§ nativeWidget()
QScrollBar* Plasma::ScrollBar::nativeWidget |
( |
| ) |
const |
- Returns
- the native widget wrapped by this ScrollBar
§ orientation()
Qt::Orientation Plasma::ScrollBar::orientation |
( |
| ) |
const |
- Returns
- the orientation of the scrollbar
- Since
- 4.4
§ pageStep()
int Plasma::ScrollBar::pageStep |
( |
| ) |
|
- Returns
- the amount of the page step
§ setMaximum()
void Plasma::ScrollBar::setMaximum |
( |
const int |
max | ) |
const |
§ setMinimum()
void Plasma::ScrollBar::setMinimum |
( |
const int |
min | ) |
const |
§ setOrientation
void Plasma::ScrollBar::setOrientation |
( |
Qt::Orientation |
orientation | ) |
|
|
slot |
§ setPageStep()
void Plasma::ScrollBar::setPageStep |
( |
int |
val | ) |
|
Sets the amount the slider will scroll when the user press page up or page down.
- Parameters
-
Definition at line 76 of file scrollbar.cpp.
§ setRange()
void Plasma::ScrollBar::setRange |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
Sets the scrollbar minimum and maximum values.
- Parameters
-
min | minimum value |
max | maximum value |
Definition at line 61 of file scrollbar.cpp.
§ setSingleStep()
void Plasma::ScrollBar::setSingleStep |
( |
int |
val | ) |
|
Sets the amount of the single step i.e how much the slider will move when the user press an arrow button.
- Parameters
-
Definition at line 66 of file scrollbar.cpp.
§ setStyleSheet()
void Plasma::ScrollBar::setStyleSheet |
( |
const QString & |
stylesheet | ) |
|
Sets the stylesheet used to control the visual display of this ScrollBar.
- Parameters
-
Definition at line 116 of file scrollbar.cpp.
§ setValue
void Plasma::ScrollBar::setValue |
( |
int |
val | ) |
|
|
slot |
§ singleStep()
int Plasma::ScrollBar::singleStep |
( |
| ) |
|
- Returns
- the amount of the single step
§ sliderMoved
void Plasma::ScrollBar::sliderMoved |
( |
int |
value | ) |
|
|
signal |
Emitted when the slider has been moved by the user.
- Since
- 4.6
§ styleSheet()
QString Plasma::ScrollBar::styleSheet |
( |
| ) |
|
- Returns
- the stylesheet currently used with this widget
§ value()
int Plasma::ScrollBar::value |
( |
| ) |
const |
- Returns
- the current scrollbar value
§ valueChanged
void Plasma::ScrollBar::valueChanged |
( |
int |
value | ) |
|
|
signal |
Emitted when the value of the slider changes.
§ maximum
int Plasma::ScrollBar::maximum |
|
readwrite |
§ minimum
int Plasma::ScrollBar::minimum |
|
readwrite |
§ nativeWidget
QScrollBar * Plasma::ScrollBar::nativeWidget |
|
read |
§ orientation
Qt::Orientation Plasma::ScrollBar::orientation |
|
readwrite |
§ pageStep
int Plasma::ScrollBar::pageStep |
|
readwrite |
§ singleStep
int Plasma::ScrollBar::singleStep |
|
readwrite |
§ styleSheet
QString Plasma::ScrollBar::styleSheet |
|
readwrite |
§ value
int Plasma::ScrollBar::value |
|
readwrite |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2018 The KDE developers.
Generated on Sun Jun 3 2018 13:15:17 by
doxygen 1.8.12 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.