KDEUI
#include <KFadeWidgetEffect>
Public Member Functions | |
KFadeWidgetEffect (QWidget *destWidget) | |
~KFadeWidgetEffect () | |
void | start (int duration=250) |
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:
- 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
|
protected |
Definition at line 204 of file kfadewidgeteffect.cpp.
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
|
protected |
Definition at line 86 of file kfadewidgeteffect.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.