hide the view on rmb click

BUG: 166902

svn path=/trunk/KDE/kdelibs/; revision=886216
This commit is contained in:
Marco Martin 2008-11-18 20:39:05 +00:00
parent 989aa84924
commit 2eb6b3ed9c

View File

@ -875,6 +875,15 @@ void AppletHandle::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
//wait a moment to hide the handle in order to recheck the mouse position //wait a moment to hide the handle in order to recheck the mouse position
m_leaveTimer->start(); m_leaveTimer->start();
} }
if (m_topview) {
//We were on a toplevel view, but are moving back on the scene
//again. destroy the toplevel view:
m_topview->hide();
delete m_topview;
m_topview = 0;
m_applet->d->ghost = false;
}
} }
bool AppletHandle::sceneEventFilter(QGraphicsItem *watched, QEvent *event) bool AppletHandle::sceneEventFilter(QGraphicsItem *watched, QEvent *event)