fix(): 优化任务栏插件布局

m_mainPanelLayout布局居中

Log: 修复任务栏位置在左边或者右边,时间显示位置偏差问题
Influence: 任务栏插件布局
Bug: https://pms.uniontech.com/zentao/bug-view-112987.html
Change-Id: Id176fcf0a5264b9308202089946fb8a0c07e8bf8
This commit is contained in:
luokai 2022-02-11 15:49:30 +08:00
parent 613bebfb46
commit fd2419c792

View File

@ -139,7 +139,7 @@ void MainPanelControl::initUI()
m_pluginAreaWidget->setLayout(m_pluginLayout);
m_pluginLayout->setSpacing(10);
m_pluginLayout->setContentsMargins(0, 0, 0, 0);
m_mainPanelLayout->addWidget(m_pluginAreaWidget);
m_mainPanelLayout->addWidget(m_pluginAreaWidget, 0, Qt::AlignCenter);
/* 桌面预览 */
m_desktopWidget->setObjectName("showdesktoparea");