Plasma
Go to the documentation of this file.
   27 ZoomAnimation::ZoomAnimation(
QObject *parent)
 
   28     : EasingAnimation(parent),
 
   33 ZoomAnimation::~ZoomAnimation()
 
   37 void ZoomAnimation::setZoom(qreal zoom)
 
   42 qreal ZoomAnimation::zoom()
 const 
   47 void ZoomAnimation::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
 
   54     if (oldState == Stopped && newState == Running) {
 
   55         w->setTransformOriginPoint(w->size().width()/2, w->size().height()/2);
 
   56         w->setScale(direction() == Forward ? 1 : m_zoom);
 
   57     } 
else if (newState == Stopped) {
 
   58         w->setScale(direction() == Forward ? m_zoom : 1);
 
   62 void ZoomAnimation::updateEffectiveTime(
int currentTime)
 
   66         qreal delta = currentTime / qreal(duration());
 
   68             delta = (1 - m_zoom) * delta;
 
   69             w->setScale(1 - delta);
 
  
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:34 by
doxygen 1.8.7 written
by 
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.