lat9nq
ad645c29a4
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
89f89cf1df
shared_widget: Correct spelling
3 years ago
lat9nq
ee32b17782
common,yuzu-qt: GCC warning silences
Fixes -Wshadow, -Wdeprecated, and catch by copy rather than by ref.
3 years ago
lat9nq
6935332cba
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
7c52bb2772
shared_widget: Improve logging, use Setting::Ranged
3 years ago
lat9nq
3b0650b70d
configuration/shared: Clean up includes [IWYU]
3 years ago
lat9nq
04d4b6ab80
(ui,)settings: Use explicit instantiation
Reduces compile times a tad on clang.
3 years ago
lat9nq
7515c502c5
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
c5f8b909ec
shared_widget: Add SPDX header
3 years ago
lat9nq
0193add060
general: Add typeinfo where needed
Using typeid without including typeinfo first produces an ill-formed program.
3 years ago
lat9nq
fe6e765b2d
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
25cea2ef27
shared_widget: Fix includes
3 years ago
lat9nq
9a2a92673c
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
d7dd023409
shared_widget: Refactor again
Starting with combobox
Putting code specific to the sub-widget in their own function.
3 years ago
lat9nq
b570b719de
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
217fa04080
configuration: Clean up includes a bit
3 years ago
lat9nq
c5a3642cb6
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
86ed82cdde
settings, shared_widget: typo fixes
3 years ago
lat9nq
432f68ad29
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
f055f2dcf4
shared_widget: Use a better icon
This one looks more relevant on Windows.
3 years ago
lat9nq
4ff8255e4a
shared_widget: Refactor helpers
Makes checkbox creation an option as opposed to a label.
3 years ago
lat9nq
8e15146026
configure_system: Implement with for loop
3 years ago
lat9nq
b11a2a206f
shared_widget: Internalize extra setting configuration
3 years ago
lat9nq
97674bc888
shared_widget: Support checkbox + spinbox
3 years ago
lat9nq
c1748b229a
shared_widget: Make button creation static
3 years ago
lat9nq
f66d617107
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