From fdd2c679e468b3eef2bae673441881e8e458cd4d Mon Sep 17 00:00:00 2001 From: yinjie Date: Tue, 12 Oct 2021 16:59:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A6=81=E7=94=A8=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E6=8A=96=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根据dtk提供的接口判断是否禁用app图标抖动效果 Log: 可配置是否app图标抖动效果 Task: https://pms.uniontech.com/zentao/task-view-86242.html Influence: 在dock栏打开app的场景 Change-Id: I9a2568fbfae3c0da919af3ffcd3cf1970d4dde79 --- frame/item/appitem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frame/item/appitem.cpp b/frame/item/appitem.cpp index 89a7a6e8e..1e1643687 100644 --- a/frame/item/appitem.cpp +++ b/frame/item/appitem.cpp @@ -41,6 +41,8 @@ #include +DGUI_USE_NAMESPACE + #define APP_DRAG_THRESHOLD 20 QPoint AppItem::MousePressPos; @@ -322,7 +324,7 @@ void AppItem::mouseReleaseEvent(QMouseEvent *e) m_itemEntryInter->Activate(QX11Info::getTimestamp()); // play launch effect - if (m_windowInfos.isEmpty()) + if (m_windowInfos.isEmpty() && DGuiApplicationHelper::isSpecialEffectsEnvironment()) playSwingEffect(); } }