Hides the shadowfake if the animation is stopped.
svn path=/trunk/KDE/kdelibs/; revision=1070124
This commit is contained in:
parent
c2c451bbeb
commit
29365773e2
@ -69,6 +69,7 @@ void PulseAnimation::resetPulser()
|
|||||||
m_under.data()->setOpacity(m_opacity);
|
m_under.data()->setOpacity(m_opacity);
|
||||||
m_under.data()->setScale(m_scale);
|
m_under.data()->setScale(m_scale);
|
||||||
m_under.data()->setZValue(m_zvalue);
|
m_under.data()->setZValue(m_zvalue);
|
||||||
|
m_under.data()->hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,6 +84,10 @@ void PulseAnimation::updateState(QAbstractAnimation::State newState, QAbstractAn
|
|||||||
setCopy();
|
setCopy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_under.data()->isVisible() == false) {
|
||||||
|
m_under.data()->setVisible(true);
|
||||||
|
}
|
||||||
|
|
||||||
m_under.data()->setOpacity(direction() == Forward ? 1 : 0);
|
m_under.data()->setOpacity(direction() == Forward ? 1 : 0);
|
||||||
m_under.data()->setScale(direction() == Forward ? m_scale : m_endScale);
|
m_under.data()->setScale(direction() == Forward ? m_scale : m_endScale);
|
||||||
} else if (newState == Stopped) {
|
} else if (newState == Stopped) {
|
||||||
|
Loading…
Reference in New Issue
Block a user