fix: layout parent

one widget should only have one layout,
others should not mark parent as this

Log: fix layout parent
This commit is contained in:
chenhongtao 2023-03-07 14:52:04 +08:00 committed by Access
parent 53e68b9435
commit cf14d9879f

View File

@ -58,14 +58,14 @@ MainPanelControl::MainPanelControl(DockInter *dockInter, QWidget *parent)
: QWidget(parent)
, m_mainPanelLayout(new QBoxLayout(QBoxLayout::LeftToRight, this))
, m_fixedAreaWidget(new QWidget(this))
, m_fixedAreaLayout(new QBoxLayout(QBoxLayout::LeftToRight, this))
, m_fixedAreaLayout(new QBoxLayout(QBoxLayout::LeftToRight))
, m_fixedSpliter(new QLabel(this))
, m_appAreaWidget(new QWidget(this))
, m_appAreaSonWidget(new QWidget(this))
, m_appAreaSonLayout(new QBoxLayout(QBoxLayout::LeftToRight, this))
, m_appAreaSonLayout(new QBoxLayout(QBoxLayout::LeftToRight))
, m_appSpliter(new QLabel(this))
, m_recentAreaWidget(new QWidget(this))
, m_recentLayout(new QBoxLayout(QBoxLayout::LeftToRight, this))
, m_recentLayout(new QBoxLayout(QBoxLayout::LeftToRight))
, m_recentSpliter(new QLabel(this))
, m_toolAreaWidget(new QWidget(this))
, m_toolAreaLayout(new QBoxLayout(QBoxLayout::LeftToRight, m_toolAreaWidget))