mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +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)
|
||||
return;
|
||||
|
||||
m_position = position;
|
||||
emit positionChanged();
|
||||
updateMainPanelLayout();
|
||||
}
|
||||
|
||||
void MainPanelControl::insertItem(int index, DockItem *item)
|
||||
@ -670,11 +671,6 @@ void MainPanelControl::moveAppSonWidget()
|
||||
m_appAreaSonWidget->move(rect.x(), rect.y());
|
||||
}
|
||||
|
||||
void MainPanelControl::positionChanged()
|
||||
{
|
||||
updateMainPanelLayout();
|
||||
}
|
||||
|
||||
void MainPanelControl::itemUpdated(DockItem *item)
|
||||
{
|
||||
item->parentWidget()->adjustSize();
|
||||
|
@ -55,7 +55,6 @@ public:
|
||||
void removePluginAreaItem(QWidget *wdg);
|
||||
void setPositonValue(Position position);
|
||||
void setDisplayMode(DisplayMode m_displayMode);
|
||||
void positionChanged();
|
||||
|
||||
MainPanelDelegate *delegate() const;
|
||||
void setDelegate(MainPanelDelegate *delegate);
|
||||
|
Loading…
x
Reference in New Issue
Block a user