Fade applet handle back in if the mouse reenters the applet while it's already fading out.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845999
This commit is contained in:
parent
93a8a87368
commit
b91b722dc2
@ -713,10 +713,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 we're already fading out, fade back in
|
||||||
m_leaveTimer->stop();
|
if (m_animId != 0) {
|
||||||
//schedule appear
|
startFading(FadeIn, m_entryPos);
|
||||||
m_hoverTimer->start();
|
} else {
|
||||||
|
//if a disappear was scheduled stop the timer
|
||||||
|
m_leaveTimer->stop();
|
||||||
|
//schedule appear
|
||||||
|
m_hoverTimer->start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppletHandle::hoverMoveEvent(QGraphicsSceneHoverEvent *event)
|
void AppletHandle::hoverMoveEvent(QGraphicsSceneHoverEvent *event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user