From 9b140528be250cb0f6627119843326369e568d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E6=9C=8B=E7=A8=8B?= Date: Thu, 6 Jan 2022 16:01:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E6=B5=8B=E8=AF=95=E4=B8=AD=E5=BA=94=E7=94=A8tips?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 性能优化时误删了这部分代码 Log: Influence: 自动化测试获取应用的tips信息 Bug: https://pms.uniontech.com/zentao/bug-view-110469.html Change-Id: I3416981aa674687571acd2da87f56f12ba77fc37 --- frame/item/appitem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frame/item/appitem.cpp b/frame/item/appitem.cpp index 610092f84..39e5b0113 100644 --- a/frame/item/appitem.cpp +++ b/frame/item/appitem.cpp @@ -477,7 +477,8 @@ QWidget *AppItem::popupTips() return nullptr; static TipsWidget appNameTips(topLevelWidget()); - appNameTips.setVisible(false); + appNameTips.setAccessibleName("tip"); + appNameTips.setObjectName(m_itemEntryInter->name()); if (!m_windowInfos.isEmpty()) { const quint32 currentWindow = m_itemEntryInter->currentWindow();