KWidgetsAddons
kpixmapsequenceoverlaypainter.cpp
73 p.drawPixmap(pixmapRect(), sequence().frameAt(m_counter), QRect(QPoint(0, 0), sequence().frameSize()));
113KPixmapSequenceOverlayPainter::KPixmapSequenceOverlayPainter(const KPixmapSequence &seq, QObject *parent)
Paints a KPixmapSequence on top of any widget at any position.
Definition kpixmapsequenceoverlaypainter.h:35
void setOffset(const QPoint &offset)
Set the offset relative to the placement determined by alignment and rect.
Definition kpixmapsequenceoverlaypainter.cpp:198
QPoint offset() const
The optional offset within the rect.
Definition kpixmapsequenceoverlaypainter.cpp:152
KPixmapSequence sequence() const
The sequence used to draw the overlay.
Definition kpixmapsequenceoverlaypainter.cpp:126
~KPixmapSequenceOverlayPainter() override
Destructor.
Definition kpixmapsequenceoverlaypainter.cpp:121
void setSequence(const KPixmapSequence &seq)
Set the sequence to be used.
Definition kpixmapsequenceoverlaypainter.cpp:157
QRect rect() const
The optional rect to draw the pixmaps in.
Definition kpixmapsequenceoverlaypainter.cpp:136
void setAlignment(Qt::Alignment align)
Set the alignment of the sequence in rect.
Definition kpixmapsequenceoverlaypainter.cpp:188
Qt::Alignment alignment() const
The alignment of the pixmaps in the rect.
Definition kpixmapsequenceoverlaypainter.cpp:147
void setRect(const QRect &rect)
Set the rect in which to place the sequence.
Definition kpixmapsequenceoverlaypainter.cpp:178
KPixmapSequenceOverlayPainter(QObject *parent=nullptr)
Constructor.
Definition kpixmapsequenceoverlaypainter.cpp:106
void setInterval(int msecs)
Set the interval between frames.
Definition kpixmapsequenceoverlaypainter.cpp:167
void setWidget(QWidget *w)
Set the widget to draw the overlay on.
Definition kpixmapsequenceoverlaypainter.cpp:172
Loads and gives access to the frames of a typical multi-row pixmap as often used for spinners.
Definition kpixmapsequence.h:32
bool sendEvent(QObject *receiver, QEvent *event)
Paint
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
virtual bool event(QEvent *e)
void installEventFilter(QObject *filterObj)
void removeEventFilter(QObject *obj)
typedef Alignment
void timeout()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:55:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:55:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.