KWidgetsAddons
kanimatedbutton.cpp
129 p.drawPixmap(QPoint(0, 0), pixmap, QRect(column * icon_size, row * icon_size, icon_size, icon_size));
An extended version of QToolButton which can display an animation.
Definition kanimatedbutton.h:29
KAnimatedButton(QWidget *parent=nullptr)
Construct an animated tool button.
Definition kanimatedbutton.cpp:45
void setAnimationPath(const QString &path)
Sets the path to the file which contains the animation to load.
Definition kanimatedbutton.cpp:84
void setIcon(const QIcon &icon)
QList< T > & fill(parameter_type value, qsizetype size)
void resize(qsizetype size)
CacheAll
NotRunning
void setCacheMode(CacheMode mode)
QPixmap currentPixmap() const const
void finished()
void frameChanged(int frameNumber)
bool jumpToFrame(int frameNumber)
void start()
MovieState state() const const
QList< QByteArray > supportedFormats()
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void fill(const QColor &color)
int height() const const
bool isNull() const const
int width() const const
transparent
void timeout()
bool isVisible() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:51 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:51 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.