hide the view on rmb click
BUG: 166902 svn path=/trunk/KDE/kdelibs/; revision=886216
This commit is contained in:
parent
989aa84924
commit
2eb6b3ed9c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user