fix: 任务栏抖动

在Paint事件中触发的重算图标大小,会导致应用区域图标大小一直在38和39两个数之间跳动。

Log: 修复任务栏特定位置下抖动的问题。
Bug: https://pms.uniontech.com/zentao/bug-view-40176.html
Change-Id: If90d5296c647495f0251cdcef515a6ececc55dc1
Reviewed-on: http://gerrit.uniontech.com/c/dde-dock/+/6032
Reviewed-by: <mailman@uniontech.com>
Reviewed-by: fanpengcheng <fanpengcheng@uniontech.com>
Tested-by: <mailman@uniontech.com>
This commit is contained in:
Zhang Qipeng 2020-09-23 16:52:42 +08:00 committed by zhangqipeng
parent 3aed24c7e0
commit 8e0b8f82a8

View File

@ -578,7 +578,7 @@ bool MainPanelControl::eventFilter(QObject *watched, QEvent *event)
m_appAreaSonWidget->adjustSize();
resizeDockIcon();
break;
case QEvent::Paint:
case QEvent::Resize:
resizeDockIcon();
break;
default: