Skip to content

Commit

Permalink
feat: normal window
Browse files Browse the repository at this point in the history
Change-Id: Ie15df142163bd51d940cb98691d541df0743232d
  • Loading branch information
justforlxz committed Mar 15, 2018
1 parent b4a54bf commit ea2d476
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/modules/desktopmodemodule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ DesktopModeModule::DesktopModeModule(QWidget *parent)

m_layout->setContentsMargins(10, 8, 10, 0);

m_layout->addStretch();
m_layout->addWidget(m_efficientWidget);
m_layout->addWidget(m_fashionWidget);
m_layout->addStretch();

setLayout(m_layout);

Expand Down
10 changes: 6 additions & 4 deletions src/modules/normalmodule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ NormalModule::NormalModule(QWidget *parent)
m_rightContentLayout->addWidget(icon);
m_rightContentLayout->addWidget(wm);

video->setFixedSize(700, height());
desktop->setFixedSize(700, height());
icon->setFixedSize(700, height());
wm->setFixedSize(700, height());
m_rightContentLayout->addStretch();

video->setFixedWidth(700);
desktop->setFixedWidth(700);
icon->setFixedWidth(700);
wm->setFixedWidth(700);

video->hide();
desktop->hide();
Expand Down
2 changes: 2 additions & 0 deletions src/modules/wmmodemodule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ WMModeModule::WMModeModule(QWidget *parent)

m_layout->setContentsMargins(10, 8, 10, 0);

m_layout->addStretch();
m_layout->addWidget(m_efficientWidget);
m_layout->addWidget(m_fashionWidget);
m_layout->addStretch();

setLayout(m_layout);

Expand Down
2 changes: 0 additions & 2 deletions src/widgets/basewidget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ BaseWidget::BaseWidget(QWidget *parent)
m_layout->setMargin(0);
m_layout->setSpacing(0);

m_layout->addStretch();
m_layout->addWidget(m_borderWidget, 0, Qt::AlignCenter);
m_layout->addSpacing(5);
m_layout->addWidget(m_title, 0, Qt::AlignCenter);
m_layout->addStretch();

setLayout(m_layout);
}
Expand Down

0 comments on commit ea2d476

Please sign in to comment.