#include <QString>#include <QByteArray>#include <QComboBox>#include <QWidget>#include <QDialog>#include <QProgressDialog>#include <QMouseEvent>#include <QPaintEvent>#include <QTime>#include <QGridLayout>#include <QDoubleSpinBox>#include <QLabel>#include <QMovie>#include <QPainter>#include <klfutil.h>

Go to the source code of this file.
Classes | |
| class | KLFProgressReporter |
| Object that emits progress information of a (lengthy) operation. More... | |
| class | KLFProgressDialog |
| A Progress Dialog. More... | |
| class | KLFPleaseWaitPopup |
| A popup screen inviting the user to wait. More... | |
| class | KLFDelayedPleaseWaitPopup |
| A popup screen inviting user to wait, appearing after a delay. More... | |
| class | KLFEnumComboBox |
| a combo box proposing a list of (integer) enumeration values. More... | |
| class | KLFGridFlowLayout |
| A Layout that lays out its children in a grid, flowing left to right, top to bottom. More... | |
| class | KLFWaitAnimationOverlay |
| An animation display. More... | |
Functions | |
| KLF_EXPORT void | klfDrawGlowedImage (QPainter *painter, const QImage &foreground, const QColor &glow_color=QColor(128, 255, 128, 8), int radius=4, bool also_draw_image=true) |
| Draws the given image with a glow effect. More... | |
| KLF_EXPORT void klfDrawGlowedImage | ( | QPainter * | painter, |
| const QImage & | foreground, | ||
| const QColor & | glow_color = QColor(128, 255, 128, 8), |
||
| int | radius = 4, |
||
| bool | also_draw_image = true |
||
| ) |
Draws the given image with a glow effect.
Draws a glow effect for image foreground by extracting the alpha channel, and creating fills an image of color glow_color with the same alpha channel. The image is then drawn at all points (x,y) around (0,0) such that |(x,y)-(0,0)| < r, effectively overlapping the glow image with itself creating a blur effect.
The resulting graphics are painted using the painter painter, at the reference position (0,0). If you want your image drawn at another position, use QPainter::translate().
If also_draw_image is TRUE, then the image itself is also drawn on top of the glow effect.
Definition at line 460 of file klfguiutil.cpp.
References QImage::convertToFormat(), QPainter::drawImage(), QImage::format(), QImage::height(), QImage::pixel(), QColor::rgba(), QImage::setPixel(), QImage::size(), and QImage::width().
Referenced by KLFDisplayLabel::display().