From d1df2a627e4d9307a1c2722aac6c5efcb4e47d41 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 30 Dec 2008 02:14:33 +0000 Subject: [PATCH] don't show tips for popped applets svn path=/trunk/KDE/kdelibs/; revision=903163 --- tooltipmanager.cpp | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/tooltipmanager.cpp b/tooltipmanager.cpp index 3ed192a8f..000f114a9 100644 --- a/tooltipmanager.cpp +++ b/tooltipmanager.cpp @@ -39,13 +39,14 @@ #endif //Plasma -#include -#include -#include -#include -#include -#include -#include +#include "plasma/applet.h" +#include "plasma/containment.h" +#include "plasma/corona.h" +#include "plasma/framesvg.h" +#include "plasma/popupapplet.h" +#include "plasma/theme.h" +#include "plasma/view.h" +#include "plasma/private/tooltip_p.h" namespace Plasma { @@ -300,6 +301,11 @@ void ToolTipManagerPrivate::showToolTip() return; } + PopupApplet *popup = qobject_cast(currentWidget); + if (popup && popup->isPopupShowing()) { + return; + } + QMetaObject::invokeMethod(currentWidget, "toolTipAboutToShow"); QHash::const_iterator tooltip = tooltips.constFind(currentWidget);