• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.4 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Member Functions | Protected Member Functions | Protected Attributes
KFadeWidgetEffect Class Reference

#include <KFadeWidgetEffect>

Inheritance diagram for KFadeWidgetEffect:
QWidget

List of all members.

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:

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.nosp@m.@kde.nosp@m..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:
destWidgetThe 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

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:
durationThe duration of the animation in milliseconds.

Definition at line 192 of file kfadewidgeteffect.cpp.


Member Data Documentation

KFadeWidgetEffectPrivate* const KFadeWidgetEffect::d_ptr
protected

Definition at line 86 of file kfadewidgeteffect.h.


The documentation for this class was generated from the following files:
  • kfadewidgeteffect.h
  • kfadewidgeteffect.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jun 1 2013 12:07:22 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs-4.10.4 API Reference

Skip menu "kdelibs-4.10.4 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal