KDEUI
KFadeWidgetEffect Class Reference
Animates changes fading the new UI over the old look. More...
#include <KFadeWidgetEffect>
Inheritance diagram for KFadeWidgetEffect:

Public Member Functions | |
KFadeWidgetEffect (QWidget *destWidget) | |
void | start (int duration=250) |
~KFadeWidgetEffect () | |
Protected Member Functions | |
void | paintEvent (QPaintEvent *) |
Protected Attributes | |
KFadeWidgetEffectPrivate *const | d_ptr |
Detailed Description
Animates changes fading the new UI over the old look.
This widget will put itself above the widget that will change and show a fading transition from the old to the new UI. It will delete itself after the animation is finished. Example:
KFadeWidgetEffect *animation = new KFadeWidgetEffect(widgetThatWillChange); // do changes on widgetThatWillChange // ... animation->start();
- Note:
- The widget that changes needs to have a parent widget. KFadeWidgetEffect does not work for toplevel widgets (windows).
- Since:
- 4.1
Definition at line 48 of file kfadewidgeteffect.h.
Constructor & Destructor Documentation
KFadeWidgetEffect::KFadeWidgetEffect | ( | QWidget * | destWidget | ) |
Create the animation widget.
Takes a snapshot of the destWidget
to use as old image that gets faded out.
- Parameters:
-
destWidget The widget that will change and should fade to the new look.
Definition at line 156 of file kfadewidgeteffect.cpp.
KFadeWidgetEffect::~KFadeWidgetEffect | ( | ) |
Destructor.
- Warning:
- KFadeWidgetEffect deletes itself after the animation is finished.
Definition at line 178 of file kfadewidgeteffect.cpp.
Member Function Documentation
void KFadeWidgetEffect::paintEvent | ( | QPaintEvent * | ) | [protected] |
void KFadeWidgetEffect::start | ( | int | duration = 250 |
) |
Starts the animation.
Call this function after all visual changes are done.
- Parameters:
-
duration The duration of the animation in milliseconds.
Definition at line 192 of file kfadewidgeteffect.cpp.
Member Data Documentation
KFadeWidgetEffectPrivate* const KFadeWidgetEffect::d_ptr [protected] |
The documentation for this class was generated from the following files: