Skip to content

Commit

Permalink
fix: Not layout center on OpenImage widget.
Browse files Browse the repository at this point in the history
修复打开图片缺省图位置不居中.

Log: 修复打开图片缺省图位置不居中.
Bug: https://pms.uniontech.com/bug-view-156713.html
Influence: UI
  • Loading branch information
lJxDabab committed Dec 28, 2023
1 parent def28c3 commit 358f3ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/src/module/view/homepagewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ HomePageWidget::HomePageWidget(QWidget *parent)
#endif

QVBoxLayout *layout = new QVBoxLayout(this);
layout->addStretch();
layout->addStretch(0);
layout->addWidget(m_thumbnailLabel, 0, Qt::AlignCenter);
layout->addSpacing(9);
layout->addWidget(m_tips, 0, Qt::AlignCenter);
layout->addWidget(button, 0, Qt::AlignCenter);
layout->addStretch();
layout->addStretch(0);
setLayout(layout);

layout->addSpacing(50);
QObject::connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::paletteTypeChanged,
this, &HomePageWidget::ThemeChange);

Expand Down

0 comments on commit 358f3ba

Please sign in to comment.