KDEUI
kselector.cpp
Go to the documentation of this file.
const QPalette & palette() const
int ascent() const
QString firstText() const
bool end()
void setText(const QString &t1, const QString &t2)
Definition: kselector.cpp:394
virtual void drawArrow(QPainter *painter, const QPoint &pos)
Override this function to draw the cursor which indicates the current value.
Definition: kselector.cpp:290
void setStops(const QGradientStops &stops)
Sets the colors that make up the gradient.
Definition: kselector.cpp:376
QStyle * style() const
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const =0
int descent() const
QString secondText() const
virtual void drawContents(QPainter *)
Override this function to draw the contents of the control.
Definition: kselector.cpp:328
void update()
int x() const
int y() const
Qt::ArrowType arrowDirection() const
void initFrom(const QWidget *widget)
int width() const
void setOrientation(Qt::Orientation)
int top() const
bool indent() const
void setPen(const QColor &color)
int left() const
KSelector(QWidget *parent=0)
Constructs a horizontal one-dimensional selection widget.
Definition: kselector.cpp:65
QPoint pos() const
void setBrush(const QBrush &brush)
void drawText(const QPointF &position, const QString &text)
int minimum() const
void setColor(const QColor &color)
The KGradientSelector widget allows the user to choose from a one-dimensional range of colors which i...
Definition: kselector.h:132
QColor secondColor() const
const QBrush & brush() const
int value() const
int width(const QString &text, int len) const
virtual QSize sizeHint() const
virtual void drawContents(QPainter *)
Override this function to draw the contents of the control.
Definition: kselector.cpp:287
int delta() const
int width() const
QFontMetrics fontMetrics() const
virtual void mouseReleaseEvent(QMouseEvent *e)
Definition: kselector.cpp:170
int bottom() const
void setX(int x)
void setY(int y)
virtual void drawPrimitive(PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const =0
QGradientStops stops() const
Get the colors that make up the gradient.
Definition: kselector.cpp:382
QColor firstColor() const
friend class KGradientSelectorPrivate
Definition: kselector.h:200
KGradientSelector(QWidget *parent=0)
Constructs a horizontal color selector which contains a gradient between white and black...
Definition: kselector.cpp:310
const QPoint & pos() const
void setColors(const QColor &col1, const QColor &col2)
Sets the two colors which span the gradient.
Definition: kselector.cpp:387
void fillOpaqueRect(QPainter *painter, const QRect &rect, const QBrush &brush)
Definition: kcolorhelpers.cpp:28
int maximum() const
bool begin(QPaintDevice *device)
KSelector is the base class for other widgets which provides the ability to choose from a one-dimensi...
Definition: kselector.h:41
void setArrowDirection(Qt::ArrowType direction)
Sets the arrow direction.
Definition: kselector.cpp:231
void setSliderDown(bool)
int height() const
void setSecondColor(const QColor &col)
Definition: kselector.cpp:407
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 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:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.