don't lose the final position on showEvent

if there is an animation running and a showEvent happens, set the position to the supposed endValue before killing the animation

BUG:331981
This commit is contained in:
Marco Martin 2014-03-25 16:24:20 +01:00
parent 1415c07d4b
commit c8844799eb

View File

@ -91,6 +91,7 @@ void ToolTipDialog::showEvent(QShowEvent *event)
{ {
m_showTimer->start(m_hideTimeout); m_showTimer->start(m_hideTimeout);
setPosition(m_animation->endValue().toPoint());
m_animation->stop(); m_animation->stop();
Dialog::showEvent(event); Dialog::showEvent(event);
} }