From 1fe327045d8c5ba41a33b68633d58553f459e5f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=81=82=E6=88=90?= Date: Mon, 10 Aug 2020 17:33:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=202D=E6=A8=A1=E5=BC=8F=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E9=BC=A0=E6=A0=87=E6=82=AC=E6=B5=AE=E4=BB=BB=E5=8A=A1=E6=A0=8F?= =?UTF-8?q?=E4=B8=8A=E7=9A=84=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE,?= =?UTF-8?q?=E6=97=A0=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 鼠标hover在任务栏-浏览器图标上后鼠标移到关闭按钮上点击关闭无响应,层级在标题之下,导致点击不到 Log: 2D模式下,鼠标悬浮任务栏上的关闭按钮,无效果 Bug: https://pms.uniontech.com/zentao/bug-view-42110.html Change-Id: I8a09d8a3907193bdc3ee25eee85de4d92341b4a2 Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/1491 Reviewed-by: Reviewed-by: niecheng Reviewed-by: wangwei Tested-by: --- frame/item/components/appsnapshot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/item/components/appsnapshot.cpp b/frame/item/components/appsnapshot.cpp index f7011a8b3..b193e4ce2 100644 --- a/frame/item/components/appsnapshot.cpp +++ b/frame/item/components/appsnapshot.cpp @@ -120,7 +120,7 @@ void AppSnapshot::setWindowInfo(const WindowInfo &info) { m_windowInfo = info; QFontMetrics fm(m_title->font()); - QString strTtile = m_title->fontMetrics().elidedText(m_windowInfo.title, Qt::ElideRight, width()); + QString strTtile = m_title->fontMetrics().elidedText(m_windowInfo.title, Qt::ElideRight, width() - m_closeBtn2D->width()); m_title->setText(strTtile); }