lat9nq
5c0cf58f73
common: Move global configuration state modifiers back to settings
2 years ago
lat9nq
61239d5b12
configuration: Use enum index
3 years ago
lat9nq
245c490e02
settings,configuration: Add a default suffix
3 years ago
lat9nq
380be385d1
configuration: Use paired settings
3 years ago
lat9nq
5700f46f8f
shared_widget: Internalize component restoring
3 years ago
lat9nq
da00b5ab3c
configuration: Use specialization of settings
Reduces some ugliness in frontend code.
3 years ago
lat9nq
e45389c266
configuration: Use a builder to create widgets
This gets rid of some repeated code and sets us up to send more
information to the new widget.
3 years ago
lat9nq
7aa6adde59
shared_widget: Correct spelling
3 years ago
lat9nq
859dff4c27
common,yuzu-qt: GCC warning silences
Fixes -Wshadow, -Wdeprecated, and catch by copy rather than by ref.
3 years ago
lat9nq
84fd9f4726
shared_widget: Some documentation, add shorter constructor
The shorter constructor enables us to specify some options without needing to
specify the default values of multiplier which wasn't always appropriate and
could be confusing.
3 years ago
lat9nq
5fe7f2a054
shared_widget: Improve logging, use Setting::Ranged
3 years ago
lat9nq
4ca87e712d
configuration/shared: Clean up includes [IWYU]
3 years ago
lat9nq
5a2b7f951d
(ui,)settings: Use explicit instantiation
Reduces compile times a tad on clang.
3 years ago
lat9nq
620f642e5b
shared_widget: Avoid calling QWidgetPrivate::setVisible
This particular setVisible function is unnecessary.
It also has horrible runtime performance, so much that it consumed maybe
80% of the time used to create a widget.
3 years ago
lat9nq
604930b7eb
shared_widget: Add SPDX header
3 years ago
lat9nq
9d6de208a1
general: Add typeinfo where needed
Using typeid without including typeinfo first produces an ill-formed program.
3 years ago
lat9nq
442f0899a8
shared_widget: Use actionTriggered for user input signals
Clicking the slider without directly interacting with the slider handle would
change the value, but not trigger the restore button.
3 years ago
lat9nq
e4bde3a1f5
shared_widget: Fix includes
3 years ago
lat9nq
4e18f8dbe9
shared_widget: Complete refactoring
Reduces code bloat a good bit by moving code specific to each sub widget
to their own functions.
3 years ago
lat9nq
1d7fb41d59
shared_widget: Refactor again
Starting with combobox
Putting code specific to the sub-widget in their own function.
3 years ago
lat9nq
c071d4d2ac
shared_widget: Force min width of 100 for restore button
Dark theme mandates a 100px minimum width for QAbstractButton, even
though this is not desired here.
3 years ago
lat9nq
4119adeb56
configuration: Clean up includes a bit
3 years ago
lat9nq
b212eb4d6f
configuration: Use a mapping of setting value to name
Makes comboboxes always correspond to the value of the setting they're
modifying.
3 years ago
lat9nq
7a56b4a224
settings, shared_widget: typo fixes
3 years ago
lat9nq
d39bfc646f
configure_audio: Implement ui generation
Needs a considerable amount of management specific to some of
the comoboboxes due to the audio engine configuration.
general: Partial audio config implmentation
configure_audio: Implement ui generation
Needs a considerable amount of management specific to some of
the comoboboxes due to the audio engine configuration.
general: Partial audio config implmentation
settings: Make audio settings as enums
3 years ago
lat9nq
f4c058719d
shared_widget: Use a better icon
This one looks more relevant on Windows.
3 years ago
lat9nq
3b0da07854
shared_widget: Refactor helpers
Makes checkbox creation an option as opposed to a label.
3 years ago
lat9nq
689efc9175
configure_system: Implement with for loop
3 years ago
lat9nq
05f745721e
shared_widget: Internalize extra setting configuration
3 years ago
lat9nq
de25cd8462
shared_widget: Support checkbox + spinbox
3 years ago
lat9nq
63ea626339
shared_widget: Make button creation static
3 years ago
lat9nq
b17ab4d1d5
configuration: Move CreateWidget to a class
We were passing so many objects between the function and the caller that
it needed to be redesigned.
3 years ago