# class KAnimatedButton

###

Module | kdeui
Namespace |
Class | KAnimatedButton
Inherits | QToolButton

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 <granroth@kde.org>

### methods

- KAnimatedButton (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

  Construct an animated tool button.

  parent - The parent widget

- KAnimatedButton (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KAnimatedButton |

- KAnimatedButton (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QWidget | 0

- clicked ( )

  returns Nothing
  SIGNAL ("clicked ()")

- iconDimensions ( )

  returns int

  Returns the current maximum dimension (width or length) for an icon.

- icons ( )

  returns QString

  Returns the current icons

- setIcons (icons)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  icons | QString |

  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

- slotTimerUpdate ( )

  returns Nothing

- start ( )

  returns Nothing

  Starts the animation from frame 1

- stop ( )

  returns Nothing

  Stops the animation. This will also reset the widget to frame 1.

- updateIcons ( )

  returns Nothing

  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.