mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
show config menu when right click launcher item
Change-Id: I8cfc757e6508068c85d8bc49c3176a5409377023
This commit is contained in:
parent
6fd0caa02d
commit
c0d787d424
Notes:
Deepin Code Review
2016-09-20 15:17:21 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Tue, 20 Sep 2016 15:17:21 +0800 Reviewed-on: https://cr.deepin.io/16194 Project: dde/dde-dock Branch: refs/heads/master
@ -53,7 +53,7 @@ void LauncherItem::resizeEvent(QResizeEvent *e)
|
||||
|
||||
void LauncherItem::mousePressEvent(QMouseEvent *e)
|
||||
{
|
||||
if (e->button() == Qt::RightButton && !perfectIconRect().contains(e->pos()))
|
||||
if (e->button() == Qt::RightButton/* && !perfectIconRect().contains(e->pos())*/)
|
||||
return QWidget::mousePressEvent(e);
|
||||
|
||||
if (e->button() != Qt::LeftButton)
|
||||
|
Loading…
x
Reference in New Issue
Block a user