Plasma
slider.cpp
Go to the documentation of this file.
149 QRect handleRect = style->subControlRect(QStyle::CC_Slider, &sliderOpt, QStyle::SC_SliderHandle, slider);
187 QWheelEvent e(event->pos().toPoint(), event->delta(),event->buttons(),event->modifiers(),event->orientation());
void moveBottom(int y)
The applet is constrained horizontally, but can expand vertically.
Definition: plasma.h:77
void setStyleSheet(const QString &styleSheet)
QSize size() const
int minimum() const
QString styleSheet()
int right() const
int maximum() const
QStyle * style() const
void setAttribute(Qt::WidgetAttribute attribute, bool on)
the text color to be used by items resting on the background
Definition: theme.h:63
qreal top() const
virtual QRect subControlRect(ComplexControl control, const QStyleOptionComplex *option, SubControl subControl, const QWidget *widget) const =0
pageStep
Qt::Orientation orientation() const
QStyle * style() const
qreal left() const
void moveLeft(int x)
The applet is constrained vertically, but can expand horizontally.
Definition: plasma.h:75
void setWindowIcon(const QIcon &icon)
void initFrom(const QWidget *widget)
qreal bottom() const
QSlider * nativeWidget() const
void setOrientation(Qt::Orientation orientation)
Sets the orientation of the slider.
Definition: slider.cpp:227
orientation
sliderPosition
int top() const
int left() const
void setWidth(int width)
bool sendEvent(QObject *receiver, QEvent *event)
QPoint center() const
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Definition: slider.cpp:82
minimum
void moveTop(int y)
tickPosition
qreal right() const
invertedAppearance
void setStyleSheet(const QString &stylesheet)
Sets the stylesheet used to control the visual display of this Slider.
Definition: slider.cpp:237
QPoint toPoint() const
singleStep
int value() const
void setHeight(int height)
QPointF pos() const
QRectF rect() const
int bottom() const
QPoint topLeft() const
QWidget * widget() const
virtual void drawComplexControl(ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget) const =0
void setWidget(QWidget *widget)
tickInterval
void moveRight(int x)
void moveCenter(const QPoint &position)
void wheelEvent(QGraphicsSceneWheelEvent *event)
Definition: slider.cpp:185
maximum
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setStyle(QStyle *style)
void setRange(int minimum, int maximum)
Sets the minimum and maximum values the slider can take.
Definition: slider.cpp:212
void sliderMoved(int value)
This signal is emitted when the user drags the slider.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
void valueChanged(int value)
This signal is emitted when the slider value has changed, with the new slider value as argument...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.