mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
auto hide preview when mouse leave
Change-Id: I5e5229706f246775a0503be98e9efdde92028c8e
This commit is contained in:
parent
3d17023466
commit
e7ab59b34c
Notes:
Deepin Code Review
2017-05-08 14:02:03 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Mon, 08 May 2017 14:02:01 +0800 Reviewed-on: https://cr.deepin.io/22903 Project: dde/dde-dock Branch: refs/heads/master
@ -108,5 +108,8 @@ void PreviewContainer::checkMouseLeave()
|
||||
const QPoint p = mapFromGlobal(QCursor::pos());
|
||||
|
||||
if (!rect().contains(p))
|
||||
{
|
||||
emit requestCancelPreview();
|
||||
emit requestHidePreview();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user