Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DolphinQt: Remove Windows dialog help buttons #10047

Merged

Conversation

Dentomologist
Copy link
Contributor

@Dentomologist Dentomologist commented Aug 21, 2021

Removes the Windows help button from a handful of dialogs. I left the XLinkKai and Ethernet dialogs alone because they're taken care of in #10025.

Also throws a few consts around.

Fixes https://bugs.dolphin-emu.org/issues/11536.

As noted in that report there's an option to globally disable the help button, but that would require us to bump the minimum Qt version from 5.9 to 5.10. Once we do bump the version we'll want to go through and remove all the hints.

QInputDialog::getText(this, tr("Input"), tr("Enter address to watch:"), QLineEdit::Normal,
QString{}, nullptr, Qt::WindowCloseButtonHint);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first three new parameters are just default arguments.

Qt::WindowCloseButtonHint overrides the Qt::WindowFlags parameter with the only bit we want set, clearing the offending Qt::WindowContextHelpButtonHint.

@Techjar
Copy link
Contributor

Techjar commented Aug 22, 2021

I think we have a subclass for this. Perhaps it was just an idea that was thrown around and never actually implemented.

@lioncash lioncash merged commit 7688db3 into dolphin-emu:master Aug 24, 2021
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants