class KAnimatedButton |
|
An extended version of QToolButton which can display an animated icon.
This widget extends QToolButton with the ability to display animation using a sequence of individual pixmaps. All you need to do is pass along a list of icon names and their size and everything else is taken care of. if you change the iconSize() via setIconSize(), you will need to call updateIcons() also to force reloading of the correct icon size.
Author Kurt Granroth |
|
Construct an animated tool button.
parent - The parent widget |
|
|
|
Returns the current maximum dimension (width or length) for an icon. |
|
Returns the current icons |
|
Sets the name of the animated icons to load. This will use the
KIconLoader.loadAnimated method for the actual loading.
icons - The name of the icons to use for the animation |
|
|
Starts the animation from frame 1 |
|
Stops the animation. This will also reset the widget to frame 1. |
|
Updates the icons by reloading them if required.
You must call this after you change the icon size, in order for the correct size icon to be loaded. |