[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/plasma/private
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2010-09-24 18:19:58
Message-ID: 20100924181958.F13FDAC88C () svn ! kde ! org
[Download RAW message or body]
SVN commit 1179173 by aseigo:
when hidden, don't bother to keep animating the move. the tooltip will be repositioned on show anyways.
M +3 -2 tooltip.cpp
--- trunk/KDE/kdelibs/plasma/private/tooltip.cpp #1179172:1179173
@@ -228,9 +228,12 @@
void ToolTip::hideEvent(QHideEvent *e)
{
QWidget::hideEvent(e);
+ d->animation->stop();
+
if (d->source) {
QMetaObject::invokeMethod(d->source.data(), "toolTipHidden");
}
+
WindowEffects::highlightWindows(winId(), QList<WId>());
}
@@ -347,9 +350,7 @@
return;
}
- if (d->animation->state() == QAbstractAnimation::Running) {
d->animation->stop();
- }
d->animation->setEndValue(to);
d->animation->start();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic