hide tooltips on the applet when the handle is hovered
This commit is contained in:
parent
2213eac61a
commit
64f687dda0
@ -47,6 +47,7 @@
|
|||||||
#include "corona.h"
|
#include "corona.h"
|
||||||
#include "paintutils.h"
|
#include "paintutils.h"
|
||||||
#include "theme.h"
|
#include "theme.h"
|
||||||
|
#include "tooltipmanager.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "framesvg.h"
|
#include "framesvg.h"
|
||||||
|
|
||||||
@ -816,12 +817,15 @@ void AppletHandle::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
|
|||||||
Q_UNUSED(event);
|
Q_UNUSED(event);
|
||||||
//kDebug() << "hover enter";
|
//kDebug() << "hover enter";
|
||||||
|
|
||||||
//if a disappear was scheduled stop the timer
|
if (m_applet) {
|
||||||
if (m_leaveTimer->isActive()) {
|
ToolTipManager::self()->hide(m_applet);
|
||||||
m_leaveTimer->stop();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_leaveTimer->isActive()) {
|
||||||
|
//if a disappear was scheduled stop the timer
|
||||||
|
m_leaveTimer->stop();
|
||||||
|
} else if (!m_anim.data() && m_animType == FadeOut) {
|
||||||
// if we're already fading out, fade back in
|
// if we're already fading out, fade back in
|
||||||
else if (!m_anim.data() && m_animType == FadeOut) {
|
|
||||||
startFading(FadeIn, m_entryPos, true);
|
startFading(FadeIn, m_entryPos, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user