KDEUI
kpixmapsequenceoverlaypainter.cpp
Go to the documentation of this file.
78 p.drawPixmap(pixmapRect(), sequence().frameAt(m_counter), QRect(QPoint(0, 0), sequence().frameSize()));
Loads and gives access to the frames of a typical multi-row pixmap as often used for spinners...
Definition: kpixmapsequence.h:45
Type type() const
QRect rect() const
The optional rect to draw the pixmaps in.
Definition: kpixmapsequenceoverlaypainter.cpp:147
Qt::Alignment alignment() const
The alignment of the pixmaps in the rect.
Definition: kpixmapsequenceoverlaypainter.cpp:161
int timeout
typedef Alignment
void setRect(const QRect &rect)
Set the rect in which to place the sequence.
Definition: kpixmapsequenceoverlaypainter.cpp:195
void setWidget(QWidget *w)
Set the widget to draw the overlay on.
Definition: kpixmapsequenceoverlaypainter.cpp:188
void setInterval(int msecs)
Set the interval between frames.
Definition: kpixmapsequenceoverlaypainter.cpp:182
QPoint offset() const
The optional offset within the rect.
Definition: kpixmapsequenceoverlaypainter.cpp:167
void installEventFilter(QObject *filterObj)
void setOffset(const QPoint &offset)
Set the offset relative to the placement determined by alignment and rect.
Definition: kpixmapsequenceoverlaypainter.cpp:213
bool sendEvent(QObject *receiver, QEvent *event)
void setAlignment(Qt::Alignment align)
Set the alignment of the sequence in rect.
Definition: kpixmapsequenceoverlaypainter.cpp:204
void setSequence(const KPixmapSequence &seq)
Set the sequence to be used.
Definition: kpixmapsequenceoverlaypainter.cpp:173
void setX(int x)
KPixmapSequenceOverlayPainter(QObject *parent=0)
Constructor.
Definition: kpixmapsequenceoverlaypainter.cpp:115
Paints a KPixmapSequence on top of any widget at any position.
Definition: kpixmapsequenceoverlaypainter.h:46
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
KPixmapSequence sequence() const
The sequence used to draw the overlay.
Definition: kpixmapsequenceoverlaypainter.cpp:135
void removeEventFilter(QObject *obj)
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.