mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-05-30 22:01:41 +00:00
fix: 修复控制中心调整任务栏尺寸缓慢显示的问题
requestUpdate信号在手动调整的时候已经在合适的时机发出,重复发送会导致在控制中心调整任务栏尺寸的时候引起重复调整导致反应缓慢 Log: 修复控制中心调整任务栏尺寸缓慢显示的问题 Influence: 从控制中心个性化调整任务栏尺寸,观察任务栏的尺寸是否正常调整 Bug: https://pms.uniontech.com/bug-view-171799.html Change-Id: If5692f8cf6569fd2d57c46173f3622c26c222c1f
This commit is contained in:
parent
e08e86dbff
commit
3d89a3d474
@ -1267,8 +1267,6 @@ void MainPanelControl::resizeDockIcon()
|
||||
calcuDockIconSize(width(), iconSize, tray_item_size);
|
||||
}
|
||||
}
|
||||
|
||||
Q_EMIT requestUpdate();
|
||||
}
|
||||
|
||||
void MainPanelControl::calcuDockIconSize(int w, int h, int traySize)
|
||||
@ -1410,13 +1408,6 @@ void MainPanelControl::calcuDockIconSize(int w, int h, int traySize)
|
||||
m_appAreaSonLayout->setContentsMargins(appLeftAndRightMargin, appTopAndBottomMargin, appLeftAndRightMargin, appTopAndBottomMargin);
|
||||
}
|
||||
|
||||
void MainPanelControl::onRequestUpdate()
|
||||
{
|
||||
// 在插件区域界面发生变化后(新增插件、删除插件、时间长度变化,新增托盘等),会触发当前的信号,此时当前类
|
||||
// 的尺寸还未变化,因此在此处发送requestUpdate信号,通知外面来调整任务栏右侧的大小,同时计算整个任务栏的大小
|
||||
Q_EMIT requestUpdate();
|
||||
}
|
||||
|
||||
void MainPanelControl::onRecentVisibleChanged(bool visible)
|
||||
{
|
||||
m_appSpliter->setVisible(visible);
|
||||
|
@ -92,7 +92,6 @@ private:
|
||||
PluginsItem *trash() const;
|
||||
|
||||
private Q_SLOTS:
|
||||
void onRequestUpdate();
|
||||
void onRecentVisibleChanged(bool visible);
|
||||
void onDockAppVisibleChanged(bool visible);
|
||||
void onToolVisibleChanged(bool visible);
|
||||
|
@ -74,8 +74,6 @@ void MainWindow::resizeEvent(QResizeEvent *event)
|
||||
MainWindowBase::resizeEvent(event);
|
||||
|
||||
m_mainPanel->updatePluginsLayout();
|
||||
// 任务栏大小、位置、模式改变都会触发resize,发射大小改变信号,供依赖项目更新位置
|
||||
Q_EMIT requestUpdate();
|
||||
}
|
||||
|
||||
void MainWindow::initConnections()
|
||||
@ -108,7 +106,6 @@ void MainWindow::setGeometry(const QRect &rect)
|
||||
return;
|
||||
|
||||
DBlurEffectWidget::setGeometry(rect);
|
||||
emit requestUpdate();
|
||||
}
|
||||
|
||||
MainWindowBase::DockWindowType MainWindow::windowType() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user