• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KFadeWidgetEffect Class Reference

Animates changes fading the new UI over the old look. More...

#include <KFadeWidgetEffect>

Inheritance diagram for KFadeWidgetEffect:
QWidget

List of all members.

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).
Author:
Matthias Kretz <kretz@kde.org>
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]

For internal use only.

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

KFadeWidgetEffectPrivate* const KFadeWidgetEffect::d_ptr [protected]

For internal use only.

Definition at line 86 of file kfadewidgeteffect.h.


The documentation for this class was generated from the following files:
  • kfadewidgeteffect.h
  • kfadewidgeteffect.cpp

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal