Hides the shadowfake if the animation is stopped.

svn path=/trunk/KDE/kdelibs/; revision=1070124
This commit is contained in:
Adenilson Cavalcanti Da Silva 2010-01-04 22:56:41 +00:00
parent c2c451bbeb
commit 29365773e2

View File

@ -69,6 +69,7 @@ void PulseAnimation::resetPulser()
m_under.data()->setOpacity(m_opacity);
m_under.data()->setScale(m_scale);
m_under.data()->setZValue(m_zvalue);
m_under.data()->hide();
}
}
@ -83,6 +84,10 @@ void PulseAnimation::updateState(QAbstractAnimation::State newState, QAbstractAn
setCopy();
}
if (m_under.data()->isVisible() == false) {
m_under.data()->setVisible(true);
}
m_under.data()->setOpacity(direction() == Forward ? 1 : 0);
m_under.data()->setScale(direction() == Forward ? m_scale : m_endScale);
} else if (newState == Stopped) {