fix: 修复自动化测试中应用tips标签无法获取的问题

性能优化时误删了这部分代码

Log:
Influence: 自动化测试获取应用的tips信息
Bug: https://pms.uniontech.com/zentao/bug-view-110469.html
Change-Id: I3416981aa674687571acd2da87f56f12ba77fc37
This commit is contained in:
范朋程 2022-01-06 16:01:50 +08:00 committed by fanpengcheng
parent b56b3d3ee2
commit 9b140528be

View File

@ -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();