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) {
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;
void setScale(qreal factor)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.