KDEUI
kpixmapsequenceoverlaypainter.cpp
Go to the documentation of this file.
78 p.drawPixmap(pixmapRect(), sequence().frameAt(m_counter), QRect(QPoint(0, 0), sequence().frameSize()));
Paints a KPixmapSequence on top of any widget at any position.
Definition: kpixmapsequenceoverlaypainter.h:47
void setOffset(const QPoint &offset)
Set the offset relative to the placement determined by alignment and rect.
Definition: kpixmapsequenceoverlaypainter.cpp:213
QPoint offset() const
The optional offset within the rect.
Definition: kpixmapsequenceoverlaypainter.cpp:167
KPixmapSequence sequence() const
The sequence used to draw the overlay.
Definition: kpixmapsequenceoverlaypainter.cpp:135
KPixmapSequenceOverlayPainter(QObject *parent=0)
Constructor.
Definition: kpixmapsequenceoverlaypainter.cpp:115
void setSequence(const KPixmapSequence &seq)
Set the sequence to be used.
Definition: kpixmapsequenceoverlaypainter.cpp:173
QRect rect() const
The optional rect to draw the pixmaps in.
Definition: kpixmapsequenceoverlaypainter.cpp:147
void setAlignment(Qt::Alignment align)
Set the alignment of the sequence in rect.
Definition: kpixmapsequenceoverlaypainter.cpp:204
Qt::Alignment alignment() const
The alignment of the pixmaps in the rect.
Definition: kpixmapsequenceoverlaypainter.cpp:161
void setRect(const QRect &rect)
Set the rect in which to place the sequence.
Definition: kpixmapsequenceoverlaypainter.cpp:195
void setInterval(int msecs)
Set the interval between frames.
Definition: kpixmapsequenceoverlaypainter.cpp:182
void setWidget(QWidget *w)
Set the widget to draw the overlay on.
Definition: kpixmapsequenceoverlaypainter.cpp:188
Loads and gives access to the frames of a typical multi-row pixmap as often used for spinners.
Definition: kpixmapsequence.h:46
int timeout
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.