From 4d641580fadfd150e3bcc49558df14525a9d6e90 Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Sat, 22 Dec 2007 03:44:25 +0000 Subject: [PATCH] Temporarily hide the tooltip when moving it to fix painting corruption svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=751523 --- widgets/tooltip.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/widgets/tooltip.cpp b/widgets/tooltip.cpp index d6a681296..37b5a0918 100644 --- a/widgets/tooltip.cpp +++ b/widgets/tooltip.cpp @@ -63,7 +63,11 @@ void ToolTip::show(const QPoint &location, const Plasma::ToolTipData &data) setData(data); move(location.x(), location.y() - sizeHint().height()); if (d->isShown) { - setVisible(true); // Don't delay if the tooltip is already shown(i.e. moving from one task to another) + // Don't delay if the tooltip is already shown(i.e. moving from one task to another) + // Qt doesn't seem to like visible tooltips moving though, so hide it and then + // immediately show it again + setVisible(false); + d->showTimer->start(0); } else { d->showTimer->start(1000); //Shown after a one second delay.