From b91b722dc2a2c7846f675ab7626d93b121ce6879 Mon Sep 17 00:00:00 2001 From: Ambroz Bizjak Date: Tue, 12 Aug 2008 19:08:55 +0000 Subject: [PATCH] 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 --- private/applethandle.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/private/applethandle.cpp b/private/applethandle.cpp index 70a24662f..10f6a7210 100644 --- a/private/applethandle.cpp +++ b/private/applethandle.cpp @@ -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)