feat(dock): modefied the code for change position

This commit is contained in:
wangxuwen 2019-09-09 17:47:48 +08:00
parent 682ad36c6c
commit 21da49ff2e
2 changed files with 2 additions and 7 deletions

View File

@ -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();

View File

@ -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);