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/InfinityBaseWindow: Minor changes #11907

Merged
merged 4 commits into from Jun 8, 2023

Conversation

lioncash
Copy link
Member

@lioncash lioncash commented Jun 8, 2023

Initially intended to only add the missing header guard, I noticed a few other changes that could be made and decided to include those as well, since they don't really deserve their own individual PRs.

Prevents potential inclusion issues.
tr() already returns a QString, so we don't need to construct a QString
around it, and FindFigure() already returns a std::string.
The parameters to this match the requirements of the toggled() function
exactly, so we can pass the function directly into the connect call.
Copy link
Member

@JosJuice JosJuice left a comment

Choose a reason for hiding this comment

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

LGTM, but you could also do QVBoxLayout in the last commit.

Restricts the headers to the cpp file where they're needed and prevents
the headers from "leaking" into other translation units.
@lioncash
Copy link
Member Author

lioncash commented Jun 8, 2023

Oh, good catch. Amended the commit

@AdmiralCurtiss AdmiralCurtiss merged commit f53b121 into dolphin-emu:master Jun 8, 2023
14 checks passed
@lioncash lioncash deleted the pragma branch June 8, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants