!37 "关于"窗口 仅显式关闭按钮

Merge pull request !37 from woclass/about
This commit is contained in:
爬山虎 2023-02-08 12:34:27 +00:00 committed by Gitee
commit 7764effe2a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 0 deletions

2
src/aboutndd.cpp Executable file → Normal file
View File

@ -6,6 +6,8 @@ AboutNdd::AboutNdd(QWidget *parent)
ui.setupUi(this);
ui.label->setOpenExternalLinks(true);
// 隐藏最大化、最小化按钮
setWindowFlags(windowFlags() & ~Qt::WindowMinMaxButtonsHint);
connect(ui.aboutPushButton, &QPushButton::clicked, this, &AboutNdd::onButtonOkayClicked);
}