don't show tips for popped applets
svn path=/trunk/KDE/kdelibs/; revision=903163
This commit is contained in:
parent
f6ac5f6052
commit
d1df2a627e
@ -39,13 +39,14 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//Plasma
|
//Plasma
|
||||||
#include <applet.h>
|
#include "plasma/applet.h"
|
||||||
#include <containment.h>
|
#include "plasma/containment.h"
|
||||||
#include <corona.h>
|
#include "plasma/corona.h"
|
||||||
#include <framesvg.h>
|
#include "plasma/framesvg.h"
|
||||||
#include <theme.h>
|
#include "plasma/popupapplet.h"
|
||||||
#include <view.h>
|
#include "plasma/theme.h"
|
||||||
#include <private/tooltip_p.h>
|
#include "plasma/view.h"
|
||||||
|
#include "plasma/private/tooltip_p.h"
|
||||||
|
|
||||||
namespace Plasma
|
namespace Plasma
|
||||||
{
|
{
|
||||||
@ -300,6 +301,11 @@ void ToolTipManagerPrivate::showToolTip()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PopupApplet *popup = qobject_cast<PopupApplet*>(currentWidget);
|
||||||
|
if (popup && popup->isPopupShowing()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QMetaObject::invokeMethod(currentWidget, "toolTipAboutToShow");
|
QMetaObject::invokeMethod(currentWidget, "toolTipAboutToShow");
|
||||||
QHash<QGraphicsWidget *, ToolTipContent>::const_iterator tooltip = tooltips.constFind(currentWidget);
|
QHash<QGraphicsWidget *, ToolTipContent>::const_iterator tooltip = tooltips.constFind(currentWidget);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user