From ce80a56b22486f4e17af457b7e36d5ec8b89d84d Mon Sep 17 00:00:00 2001 From: Wu JiangYu Date: Mon, 30 Nov 2026 10:14:47 +0800 Subject: [PATCH] fix(tray): match Dock tooltip delay MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Set the tray and quick panel tooltip delay to 300 ms. 2. Set the card plugin tooltip delay to 300 ms. Log: Align both tray-loader tooltip delays with the Dock. Influence: Plugin tooltips follow the Dock hover delay. fix(tray): 对齐任务栏提示延时 1. 将托盘和快捷面板的提示延时设为 300 毫秒。 2. 将卡片插件的提示延时设为 300 毫秒。 Log: 将 tray-loader 的两路提示延时与任务栏对齐。 Influence: 插件提示与任务栏采用相同的悬停延时。 PMS: TASK-399397 --- src/loader/cardpluginitem.cpp | 2 +- src/loader/pluginitem.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/loader/cardpluginitem.cpp b/src/loader/cardpluginitem.cpp index 7a2635d24..b98827f32 100644 --- a/src/loader/cardpluginitem.cpp +++ b/src/loader/cardpluginitem.cpp @@ -19,7 +19,7 @@ namespace { // Matches the hover delay of the tray items, see PluginItem. -constexpr int kToolTipDelay = 200; +constexpr int kToolTipDelay = 300; void populateMenu(QMenu *menu, const QString &menuJson) { diff --git a/src/loader/pluginitem.cpp b/src/loader/pluginitem.cpp index a60b2ce90..0e2a4c566 100644 --- a/src/loader/pluginitem.cpp +++ b/src/loader/pluginitem.cpp @@ -40,7 +40,7 @@ PluginItem::PluginItem(PluginsItemInterface *pluginItemInterface, const QString , m_tipsWidget(nullptr) { m_tooltipTimer->setSingleShot(true); - m_tooltipTimer->setInterval(200); + m_tooltipTimer->setInterval(300); if (m_dbusProxy.isNull()) m_dbusProxy.reset(new DockDBusProxy);