From a32ca528f03ceb0a0589073abbe8cd4d33b5b0fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9nard?= Date: Thu, 28 Aug 2008 17:02:42 +0000 Subject: [PATCH] sometimes the tooltip is shown before it take his correct position svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=854008 --- private/tooltip.cpp | 5 ----- tooltipmanager.cpp | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/private/tooltip.cpp b/private/tooltip.cpp index fe1b6491f..5be4a028a 100644 --- a/private/tooltip.cpp +++ b/private/tooltip.cpp @@ -137,11 +137,6 @@ void ToolTip::prepareShowing() layout()->activate(); resize(sizeHint()); - if (isVisible()) { - d->preview->setInfo(); - } else { - show(); - } } void ToolTip::resizeEvent(QResizeEvent *e) diff --git a/tooltipmanager.cpp b/tooltipmanager.cpp index 127ff62e0..60d55181e 100644 --- a/tooltipmanager.cpp +++ b/tooltipmanager.cpp @@ -301,9 +301,11 @@ void ToolTipManagerPrivate::showToolTip() ToolTip *tooltip = tooltips.value(currentWidget); if (tooltip) { + tooltip->setVisible(false); tooltip->prepareShowing(); tooltip->move(popupPosition(currentWidget, tooltip->size())); isShown = true; //ToolTip is visible + tooltip->setVisible(true); } }