disable shadow when shown

Change-Id: I1a3b65b964d110259c8cbdd044c32864e6faa265
This commit is contained in:
石博文 2018-02-01 14:23:53 +08:00
parent 648b16d611
commit fdab42775f
Notes: Deepin Code Review 2018-02-01 15:15:21 +08:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Thu, 01 Feb 2018 15:15:21 +0800
Reviewed-on: https://cr.deepin.io/31334
Project: dde/dde-dock
Branch: refs/heads/master
2 changed files with 10 additions and 0 deletions

View File

@ -159,6 +159,15 @@ bool MainWindow::event(QEvent *e)
return QWidget::event(e);
}
void MainWindow::showEvent(QShowEvent *e)
{
QWidget::showEvent(e);
m_platformWindowHandle.setEnableBlurWindow(false);
m_platformWindowHandle.setShadowOffset(QPoint());
m_platformWindowHandle.setShadowRadius(0);
}
void MainWindow::mousePressEvent(QMouseEvent *e)
{
e->ignore();

View File

@ -50,6 +50,7 @@ public slots:
private:
using QWidget::show;
bool event(QEvent *e);
void showEvent(QShowEvent *e);
void mousePressEvent(QMouseEvent *e);
void keyPressEvent(QKeyEvent *e);
void enterEvent(QEvent *e);