KDEUI
kanimatedbutton.cpp
Go to the documentation of this file.
139 p.drawPixmap(QPoint(0, 0), pixmap, QRect(column * icon_size, row * icon_size, icon_size, icon_size));
165 QMovie *movie = KIconLoader::global()->loadMovie(d->icon_name, KIconLoader::NoGroup, -icon_size);
QMovie * loadMovie(const QString &name, KIconLoader::Group group, int size=0, QObject *parent=0) const
Loads an animated icon.
Definition: kiconloader.cpp:1240
int width() const
void fill(const QColor &color)
static KIconLoader * global()
Returns the global icon loader initialized with the global KComponentData.
KAnimatedButton(QWidget *parent=0L)
Construct an animated tool button.
Definition: kanimatedbutton.cpp:59
int timeout
bool isVisible() const
void setIcons(const QString &icons)
Sets the name of the animated icons to load.
Definition: kanimatedbutton.cpp:97
An extended version of QToolButton which can display an animated icon.
Definition: kanimatedbutton.h:38
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
bool isNull() const
int width() const
int width() const
QSize iconSize() const
int iconDimensions() const
Returns the current maximum dimension (width or length) for an icon.
Definition: kanimatedbutton.cpp:199
void setCacheMode(CacheMode mode)
void updateIcons()
Updates the icons by reloading them if required.
Definition: kanimatedbutton.cpp:161
int height() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int height() const
QString iconPath(const QString &name, int group_or_size, bool canReturnNull=false) const
Returns the path of an icon.
Definition: kiconloader.cpp:1009
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:58 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:23:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.