Skip to content

Commit

Permalink
fix: Button focus not work in wayland
Browse files Browse the repository at this point in the history
修复在wayland下焦点未成功设置

Log: 修复在wayland下焦点未成功设置
Bug: https://pms.uniontech.com/bug-view-247435.html
  • Loading branch information
rb-union committed Mar 22, 2024
1 parent c4ba2e8 commit 7eee7c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/deb-installer/view/pages/ddimerrorpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ DdimErrorPage::DdimErrorPage(QWidget *parent)
allLayout->setContentsMargins(allContentsMargins);
allLayout->setSpacing(0);

confimButton->setFocusPolicy(Qt::StrongFocus);
confimButton->setFixedSize(120, 36);
confimButton->setDefault(true);
connect(confimButton, &QPushButton::clicked, this, &DdimErrorPage::comfimPressed);
Expand Down

0 comments on commit 7eee7c9

Please sign in to comment.