KDEUI
kled.cpp
Go to the documentation of this file.
291 QRadialGradient fillGradient(center, smallestSize / 2.0, QPointF(center.x(), size.height() / 3.0));
const QPalette & palette() const
int width() const
Definition: kled.h:66
KLed(QWidget *parent=0)
Constructs a green, round LED widget which will initially be turned on.
Definition: kled.cpp:52
void setColorAt(qreal position, const QColor &color)
QStyle * style() const
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const =0
const QColor & color(ColorGroup group, ColorRole role) const
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
void setAlpha(int alpha)
void update()
Definition: kled.h:88
void initFrom(const QWidget *widget)
int width() const
QSize size() const
virtual void paintRectFrame(bool raised)
Paints a rectangular LED, either raised or sunken, depending on its argument.
Definition: kled.cpp:157
qreal x() const
Definition: kled.h:88
void fill(uint pixelValue)
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
QColor overlayColors(const QColor &base, const QColor &paint, QPainter::CompositionMode comp=QPainter::CompositionMode_SourceOver)
Blend two colors into a new color by painting the second color over the first using the specified com...
Definition: kcolorutils.cpp:124
void setDarkFactor(int darkFactor)
Sets the factor to darken the LED in KLed::Off state.
Definition: kled.cpp:209
Definition: kled.h:66
int height() const
Definition: kled.h:88
bool paintCachedPixmap()
Paint the cached antialiased pixmap corresponding to the state if any.
Definition: kled.cpp:127
int height() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:59 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:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.