don't show tips for popped applets

svn path=/trunk/KDE/kdelibs/; revision=903163
This commit is contained in:
Aaron J. Seigo 2008-12-30 02:14:33 +00:00
parent f6ac5f6052
commit d1df2a627e

View File

@ -39,13 +39,14 @@
#endif
//Plasma
#include <applet.h>
#include <containment.h>
#include <corona.h>
#include <framesvg.h>
#include <theme.h>
#include <view.h>
#include <private/tooltip_p.h>
#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<PopupApplet*>(currentWidget);
if (popup && popup->isPopupShowing()) {
return;
}
QMetaObject::invokeMethod(currentWidget, "toolTipAboutToShow");
QHash<QGraphicsWidget *, ToolTipContent>::const_iterator tooltip = tooltips.constFind(currentWidget);