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:
Ambroz Bizjak 2008-08-12 19:08:55 +00:00
parent 93a8a87368
commit b91b722dc2

View File

@ -713,10 +713,15 @@ void AppletHandle::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Q_UNUSED(event);
//kDebug() << "hover enter";
//if a disappear was scheduled stop the timer
m_leaveTimer->stop();
//schedule appear
m_hoverTimer->start();
// if we're already fading out, fade back in
if (m_animId != 0) {
startFading(FadeIn, m_entryPos);
} else {
//if a disappear was scheduled stop the timer
m_leaveTimer->stop();
//schedule appear
m_hoverTimer->start();
}
}
void AppletHandle::hoverMoveEvent(QGraphicsSceneHoverEvent *event)