mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
disable shadow when shown
Change-Id: I1a3b65b964d110259c8cbdd044c32864e6faa265
This commit is contained in:
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
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user