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
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
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
int iconDimensions() const
Returns the current maximum dimension (width or length) for an icon.
Definition: kanimatedbutton.cpp:199
void updateIcons()
Updates the icons by reloading them if required.
Definition: kanimatedbutton.cpp:161
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.