mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
feat(dock): modefied the code for change position
This commit is contained in:
parent
682ad36c6c
commit
21da49ff2e
@ -240,8 +240,9 @@ void MainPanelControl::setPositonValue(Dock::Position position)
|
|||||||
{
|
{
|
||||||
if (m_position == position)
|
if (m_position == position)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_position = position;
|
m_position = position;
|
||||||
emit positionChanged();
|
updateMainPanelLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainPanelControl::insertItem(int index, DockItem *item)
|
void MainPanelControl::insertItem(int index, DockItem *item)
|
||||||
@ -670,11 +671,6 @@ void MainPanelControl::moveAppSonWidget()
|
|||||||
m_appAreaSonWidget->move(rect.x(), rect.y());
|
m_appAreaSonWidget->move(rect.x(), rect.y());
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainPanelControl::positionChanged()
|
|
||||||
{
|
|
||||||
updateMainPanelLayout();
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainPanelControl::itemUpdated(DockItem *item)
|
void MainPanelControl::itemUpdated(DockItem *item)
|
||||||
{
|
{
|
||||||
item->parentWidget()->adjustSize();
|
item->parentWidget()->adjustSize();
|
||||||
|
@ -55,7 +55,6 @@ public:
|
|||||||
void removePluginAreaItem(QWidget *wdg);
|
void removePluginAreaItem(QWidget *wdg);
|
||||||
void setPositonValue(Position position);
|
void setPositonValue(Position position);
|
||||||
void setDisplayMode(DisplayMode m_displayMode);
|
void setDisplayMode(DisplayMode m_displayMode);
|
||||||
void positionChanged();
|
|
||||||
|
|
||||||
MainPanelDelegate *delegate() const;
|
MainPanelDelegate *delegate() const;
|
||||||
void setDelegate(MainPanelDelegate *delegate);
|
void setDelegate(MainPanelDelegate *delegate);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user