-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Preferences: Remove all references to MixxxMainWindow #4109
Preferences: Remove all references to MixxxMainWindow #4109
Conversation
We can't have any references to the `MixxxMainWindow` class in `DlgPrefInterface` if we want to use the preferences for QML skins that don't have a `MixxxMainWindow` instance. The using the primary screen is a sensible fallback.
Instead of letting the `DlgPrefInterface` class hold a reference to the `MixxxMainWindow` and call its `setToolTipsCfg` method directly, we just update the config object and emit a signal that the main window can connect to.
Instead of calling `rebootMixxxView` directly, we can just emit a signal. This allows removing any references to the `MixxxMainWindow` in `DlgPreferences`.
This is similar to the previous commit, it basically removes the necessity to hold a pointer to the main window.
Pull Request Test Coverage Report for Build 1037258891
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, we didn't notice that we pulled in a massive amount of dependencies for just a single aspect? Great that you found this low hanging fruit!
I am currently not able to test it. But I would approve the refactoring as such if we didn't miss anything.
I didn't experience any issues so far. Thank you! LGTM |
This is necessary if we want to use the preferences in QML without creating a QWidgets-based
MixxxMainWindow
instance.