mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fixed(bug:3176):refresh item icon when screen changed.
This commit is contained in:
parent
0a033a3f60
commit
a1334208d7
@ -125,6 +125,7 @@ DockSettings::DockSettings(QWidget *parent)
|
|||||||
connect(m_displayInter, &DBusDisplay::PrimaryRectChanged, this, &DockSettings::primaryScreenChanged, Qt::QueuedConnection);
|
connect(m_displayInter, &DBusDisplay::PrimaryRectChanged, this, &DockSettings::primaryScreenChanged, Qt::QueuedConnection);
|
||||||
connect(m_displayInter, &DBusDisplay::ScreenHeightChanged, this, &DockSettings::primaryScreenChanged, Qt::QueuedConnection);
|
connect(m_displayInter, &DBusDisplay::ScreenHeightChanged, this, &DockSettings::primaryScreenChanged, Qt::QueuedConnection);
|
||||||
connect(m_displayInter, &DBusDisplay::ScreenWidthChanged, this, &DockSettings::primaryScreenChanged, Qt::QueuedConnection);
|
connect(m_displayInter, &DBusDisplay::ScreenWidthChanged, this, &DockSettings::primaryScreenChanged, Qt::QueuedConnection);
|
||||||
|
connect(m_displayInter, &DBusDisplay::PrimaryChanged, this, &DockSettings::primaryScreenChanged, Qt::QueuedConnection);
|
||||||
|
|
||||||
DApplication *app = qobject_cast<DApplication *>(qApp);
|
DApplication *app = qobject_cast<DApplication *>(qApp);
|
||||||
if (app) {
|
if (app) {
|
||||||
@ -378,6 +379,9 @@ void DockSettings::primaryScreenChanged()
|
|||||||
updateForbidPostions();
|
updateForbidPostions();
|
||||||
emit dataChanged();
|
emit dataChanged();
|
||||||
calculateWindowConfig();
|
calculateWindowConfig();
|
||||||
|
|
||||||
|
// 主屏切换时,如果缩放比例不一样,需要刷新item的图标(bug:3176)
|
||||||
|
m_itemManager->refershItemsIcon();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DockSettings::resetFrontendGeometry()
|
void DockSettings::resetFrontendGeometry()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user