From 9ecae806dd0d8a917456ee3fd50a4f2ef126738a Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Fri, 24 Sep 2010 18:19:58 +0000 Subject: [PATCH] when hidden, don't bother to keep animating the move. the tooltip will be repositioned on show anyways. svn path=/trunk/KDE/kdelibs/; revision=1179173 --- private/tooltip.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/private/tooltip.cpp b/private/tooltip.cpp index a8a5d3f0d..a59fee9fc 100644 --- a/private/tooltip.cpp +++ b/private/tooltip.cpp @@ -228,9 +228,12 @@ void ToolTip::showEvent(QShowEvent *e) void ToolTip::hideEvent(QHideEvent *e) { QWidget::hideEvent(e); + d->animation->stop(); + if (d->source) { QMetaObject::invokeMethod(d->source.data(), "toolTipHidden"); } + WindowEffects::highlightWindows(winId(), QList()); } @@ -347,9 +350,7 @@ void ToolTip::moveTo(const QPoint &to) return; } - if (d->animation->state() == QAbstractAnimation::Running) { - d->animation->stop(); - } + d->animation->stop(); d->animation->setEndValue(to); d->animation->start(); }