fade out the applet handle on mouse release when it has left its

containment
CCMAIL: panel-devel@kde.org

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=831848
This commit is contained in:
Marco Martin 2008-07-13 12:52:09 +00:00
parent 4b0afa6fa7
commit 6e22253b97

View File

@ -429,6 +429,7 @@ void AppletHandle::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
//find out if we were dropped on a panel or something //find out if we were dropped on a panel or something
if (leaveCurrentView(event->screenPos())) { if (leaveCurrentView(event->screenPos())) {
startFading(FadeOut, m_entryPos);
Plasma::View *v = Plasma::View::topLevelViewAt(event->screenPos()); Plasma::View *v = Plasma::View::topLevelViewAt(event->screenPos());
if (v && v != m_containment->view()) { if (v && v != m_containment->view()) {
Containment *c = v->containment(); Containment *c = v->containment();