diff --git a/src/dde-wallpaper-chooser/frame.cpp b/src/dde-wallpaper-chooser/frame.cpp index b2bf455e1..244085791 100644 --- a/src/dde-wallpaper-chooser/frame.cpp +++ b/src/dde-wallpaper-chooser/frame.cpp @@ -584,7 +584,7 @@ void Frame::reLayoutTools() if (m_mode == ScreenSaverMode) { m_waitControlLabel->show(); m_waitControl->show(); - m_lockScreenBox->show(); + m_lockScreenBox->hide(); #ifndef DISABLE_WALLPAPER_CAROUSEL m_wallpaperCarouselCheckBox->hide(); m_wallpaperCarouselControl->hide(); @@ -623,8 +623,7 @@ void Frame::adjustModeSwitcherPoint() { auto tools_layout_margins = m_toolLayout->contentsMargins(); int width = m_waitControlLabel->sizeHint().width() + - m_waitControl->sizeHint().width() + - m_lockScreenBox->sizeHint().width(); + m_waitControl->sizeHint().width(); tools_width = tools_layout_margins.left() + width + m_toolLayout->count() * m_toolLayout->spacing(); @@ -867,10 +866,9 @@ void Frame::initUI() m_toolLayout->setSpacing(10); m_toolLayout->setContentsMargins(20, 10, 20, 10); - m_toolLayout->addWidget(m_waitControlLabel); + m_toolLayout->addWidget(m_waitControlLabel, 1, Qt::AlignLeft); m_toolLayout->addWidget(m_waitControl); m_toolLayout->addSpacing(10); - m_toolLayout->addWidget(m_lockScreenBox, 1, Qt::AlignLeft); #ifdef DISABLE_WALLPAPER_CAROUSEL // 在布局中占位,保证布局的高度