KWidgetsAddons
kselector.h
void setStops(const QGradientStops &stops)
Sets the colors that make up the gradient.
Definition kselector.cpp:345
void setColors(const QColor &col1, const QColor &col2)
Sets the two colors which span the gradient.
Definition kselector.cpp:356
void drawContents(QPainter *) override
Override this function to draw the contents of the control.
Definition kselector.cpp:293
KGradientSelector(QWidget *parent=nullptr)
Constructs a horizontal color selector which contains a gradient between white and black.
Definition kselector.cpp:279
KSelector(QWidget *parent=nullptr)
Constructs a horizontal one-dimensional selection widget.
Definition kselector.cpp:45
void setArrowDirection(Qt::ArrowType direction)
Sets the arrow direction.
Definition kselector.cpp:206
virtual void drawContents(QPainter *)
Override this function to draw the contents of the control.
Definition kselector.cpp:258
virtual void drawArrow(QPainter *painter, const QPoint &pos)
Override this function to draw the cursor which indicates the current value.
Definition kselector.cpp:262
QAbstractSlider(QWidget *parent)
maximum
minimum
void setValue(int)
virtual void wheelEvent(QWheelEvent *e) override
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
QObject * parent() const const
ArrowType
Orientation
QWidget(QWidget *parent, Qt::WindowFlags f)
QRect contentsRect() const const
minimumSize
virtual void mouseMoveEvent(QMouseEvent *event)
virtual void mousePressEvent(QMouseEvent *event)
virtual void mouseReleaseEvent(QMouseEvent *event)
virtual void paintEvent(QPaintEvent *event)
pos
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 28 2025 12:02:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 28 2025 12:02:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.