From 2a4432735079f4795475cbe8c0c1a717e28143f5 Mon Sep 17 00:00:00 2001 From: ArchieMeng Date: Thu, 28 Dec 2023 14:15:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=9B=B7=E7=A5=9E?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E6=97=A0=E6=B3=95=E8=AE=BE=E7=BD=AE=E6=A8=A1?= =?UTF-8?q?=E7=B3=8A=E7=9A=84=E9=97=AE=E9=A2=98=20(#323)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 窗管在窗口很小的时候会强制禁用设置模糊。调大最小高度解决。 Issue: https://github.com/linuxdeepin/developer-center/issues/6568 Log: 修复雷神窗口无法设置模糊的问题 Signed-off-by: Yutao Meng --- src/main/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/mainwindow.cpp b/src/main/mainwindow.cpp index 90d6bfb61..236c9684e 100644 --- a/src/main/mainwindow.cpp +++ b/src/main/mainwindow.cpp @@ -2586,7 +2586,7 @@ void QuakeWindow::topToBottomAnimation() return; isNotAnimation = false; - this->setMinimumHeight(0);//设置最小高度为0,让动画效果流畅 + this->setMinimumHeight(2); // 避免窗管强制取消模糊。 currentPage()->setMinimumHeight(currentPage()->height());//设置page的最小高度,让动画效果时,page上信息不因为外框的变小而变小 //动画代码 @@ -2594,7 +2594,7 @@ void QuakeWindow::topToBottomAnimation() m_heightAni->setEasingCurve(QEasingCurve::Linear); int durationTime = getQuakeAnimationTime(); m_heightAni->setDuration(durationTime); - m_heightAni->setStartValue(1); + m_heightAni->setStartValue(2); m_heightAni->setEndValue(getQuakeHeight()); m_heightAni->start(QAbstractAnimation::DeleteWhenStopped);