From fdcf407f6559a8d46863eafaaea1e4db1d618082 Mon Sep 17 00:00:00 2001 From: songwentao Date: Tue, 30 Nov 2021 15:09:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=A3=E5=86=B3=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E6=98=BE=E7=A4=BA=E4=B8=BA=E7=A9=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 应用的rect()为空时,继续循环调用,等待任务栏唤出. Log: 优化任务栏智能隐藏模式下应用显示效果 Task: https://pms.uniontech.com/zentao/task-view-93128.html Influence: 任务栏-智能隐藏模式-企业微信闪烁时,任务栏显示隐藏时应用图标显示效果 Change-Id: I320fd0cd3121c0ee1e3778506195ce1eadf8627a --- frame/item/appitem.cpp | 3 +++ frame/util/multiscreenworker.cpp | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frame/item/appitem.cpp b/frame/item/appitem.cpp index e7b561941..c0ae364e6 100644 --- a/frame/item/appitem.cpp +++ b/frame/item/appitem.cpp @@ -684,6 +684,9 @@ void AppItem::playSwingEffect() if (m_swingEffectView != nullptr) return; + if (rect().isEmpty()) + return checkAttentionEffect(); + stopSwingEffect(); QPair pair = SwingEffect( diff --git a/frame/util/multiscreenworker.cpp b/frame/util/multiscreenworker.cpp index 87ffa5ca6..b8635add9 100644 --- a/frame/util/multiscreenworker.cpp +++ b/frame/util/multiscreenworker.cpp @@ -253,10 +253,8 @@ void MultiScreenWorker::hideAniFinished() emit requestUpdateLayout(); const QRect rect = dockRect(m_ds.current(), m_position, HideMode::KeepHidden, m_displayMode); - parent()->setFixedSize(rect.size()); parent()->setGeometry(rect); - parent()->panel()->setFixedSize(rect.size()); parent()->panel()->move(0, 0);