fix dock cant shown

dock cant shown if set to bottom and always hide mode

Change-Id: Iab7fbfc5276ef967d1a7bd8c77a139eb71130322
This commit is contained in:
石博文 2017-03-28 17:28:23 +08:00
parent 3595af6faa
commit 10e1989e2e
Notes: Deepin Code Review 2017-03-29 08:55:08 +08:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Wed, 29 Mar 2017 08:55:08 +0800
Reviewed-on: https://cr.deepin.io/21890
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -486,8 +486,14 @@ void MainWindow::updatePanelVisible()
void MainWindow::adjustShadowMask()
{
if (m_mainPanel->pos() != QPoint(0, 0) || m_panelHideAni->state() == QPropertyAnimation::Running || m_panelShowAni->state() == QPauseAnimation::Running)
return m_platformWindowHandle.setShadowRadius(0);
if (m_mainPanel->pos() != QPoint(0, 0) ||
m_panelHideAni->state() == QPropertyAnimation::Running ||
m_panelShowAni->state() == QPauseAnimation::Running)
{
m_platformWindowHandle.setShadowRadius(0);
m_platformWindowHandle.setClipPath(QPainterPath());
return;
}
const QRect r = rect();
const int radius = 5;