fix: swing effect not allow mouse event

Change-Id: I20c8a65486f90a7bab112eac095d85b0dd355131
This commit is contained in:
haruyukilxz 2018-04-10 17:49:32 +08:00 committed by 张丁元
parent 5706b61cf4
commit 61002cd350
Notes: gerrit 2018-04-11 01:26:20 +00:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 张丁元 <kirigaya@mkacg.com>
Submitted-at: Wed, 11 Apr 2018 01:26:20 +0000
Reviewed-on: https://cr.deepin.io/33491
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -125,6 +125,8 @@ AppItem::AppItem(const QDBusObjectPath &entry, QWidget *parent)
m_smallWatcher(new QFutureWatcher<QPixmap>(this)),
m_largeWatcher(new QFutureWatcher<QPixmap>(this))
{
m_swingEffectView->setAttribute(Qt::WA_TransparentForMouseEvents);
QHBoxLayout *centralLayout = new QHBoxLayout;
centralLayout->addWidget(m_swingEffectView);
centralLayout->setMargin(0);