fix tooltip positioning

don't ever try to reposition the tooltip on showEvent

Change-Id: Ie1c159c092baf480ab3cbb83e537b28e354973bf
This commit is contained in:
Marco Martin 2015-01-29 13:13:34 +01:00
parent 534733558c
commit 2d7dfd2147

View File

@ -77,10 +77,9 @@ QQuickItem *ToolTipDialog::loadDefaultItem()
void ToolTipDialog::showEvent(QShowEvent *event)
{
m_showTimer->start(m_hideTimeout);
m_animation->stop();
Dialog::showEvent(event);
setPosition(m_animation->endValue().toPoint());
}
void ToolTipDialog::hideEvent(QHideEvent *event)