Commit graph

1133 commits

Author SHA1 Message Date
lat9nq
068d23c2ac shared_translation: Add missing time zones 2023-07-21 10:56:55 -04:00
lat9nq
6a14be7536 shared_translation: Add controller_applet_disabled 2023-07-21 10:56:55 -04:00
lat9nq
5dad33923c shared_translation: Add barrier_feedback_loops 2023-07-21 10:56:55 -04:00
lat9nq
61239d5b12 configuration: Use enum index 2023-07-21 10:56:55 -04:00
lat9nq
5c08176020 shared_translation: Deobfuscate auto time zone 2023-07-21 10:56:55 -04:00
lat9nq
245c490e02 settings,configuration: Add a default suffix 2023-07-21 10:56:55 -04:00
lat9nq
380be385d1 configuration: Use paired settings 2023-07-21 10:56:55 -04:00
lat9nq
5700f46f8f shared_widget: Internalize component restoring 2023-07-21 10:56:55 -04:00
lat9nq
da00b5ab3c configuration: Use specialization of settings
Reduces some ugliness in frontend code.
2023-07-21 10:56:55 -04:00
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.
2023-07-21 10:56:55 -04:00
lat9nq
d9699be7c2 shared_translation: Fix context usage
Currently unused, but I don't want to start headaches when someone
decides to use it the first time.
2023-07-21 10:56:55 -04:00
lat9nq
27df166abd settings,translation: Fix time zone enum
Renames enum values to conform to naming convention.
2023-07-21 10:56:55 -04:00
lat9nq
2959a3efb4 config_shared: Remove storing the group from tab 2023-07-21 10:56:55 -04:00
lat9nq
0a5e03b492 configuration: Move speed_limit to core 2023-07-21 10:56:55 -04:00
lat9nq
7aa6adde59 shared_widget: Correct spelling 2023-07-21 10:56:55 -04:00
lat9nq
859dff4c27 common,yuzu-qt: GCC warning silences
Fixes -Wshadow, -Wdeprecated, and catch by copy rather than by ref.
2023-07-21 10:56:55 -04:00
lat9nq
92941df1f6 configure_graphics: Simplify UpdateAPILayout
Reduces branching/swictch cases for simplicity/code size
2023-07-21 10:56:54 -04:00
lat9nq
aebab92dac configure_graphcs: Fix setting shader/device in custom config 2023-07-21 10:56:54 -04:00
lat9nq
d1757cc55e configuration: Use shorter constructor as needed
Reduces some confusion hopefully, since some parameters specified were not
specific to the setting in question.
2023-07-21 10:56:54 -04:00
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.
2023-07-21 10:56:54 -04:00
lat9nq
1ced5ad6e6 config: Remove unused functions 2023-07-21 10:56:54 -04:00
lat9nq
98eb39ee74 settings: Delete cpu_accuracy_first_time
Almost a 2 year old migration setting now
2023-07-21 10:56:54 -04:00
lat9nq
5fe7f2a054 shared_widget: Improve logging, use Setting::Ranged 2023-07-21 10:56:54 -04:00
lat9nq
4ca87e712d configuration/shared: Clean up includes [IWYU] 2023-07-21 10:56:54 -04:00
lat9nq
05e54c094f configure_graphics: Fix vulkan_device bug 2023-07-21 10:56:54 -04:00
lat9nq
5a2b7f951d (ui,)settings: Use explicit instantiation
Reduces compile times a tad on clang.
2023-07-21 10:56:54 -04:00
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.
2023-07-21 10:56:54 -04:00
lat9nq
9be2b39509 FIXME configuration: Avoid unnecessary allocations
ConfigurationShared::Widget needs to be created with a builder. This
would avoid some duplicated code.
2023-07-21 10:56:54 -04:00
lat9nq
604930b7eb shared_widget: Add SPDX header 2023-07-21 10:56:54 -04:00
lat9nq
9d6de208a1 general: Add typeinfo where needed
Using typeid without including typeinfo first produces an ill-formed program.
2023-07-21 10:56:54 -04:00
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.
2023-07-21 10:56:54 -04:00
lat9nq
38683238a8 shared_translation: Populate combobox enums with macro 2023-07-21 10:56:54 -04:00
lat9nq
cb4cdcbaeb configuration: Document odd widget cases
Explain why we need to do things differently at times, to serve as a
reference.
2023-07-21 10:56:54 -04:00
lat9nq
435aec0f7f shared_translation: Add translation for use video framrate 2023-07-21 10:56:54 -04:00
lat9nq
78f92086ca settings,general: Rename non-confirming enums 2023-07-21 10:56:54 -04:00
lat9nq
d35281ddf3 configuration: Use IDs to sort holds 2023-07-21 10:56:07 -04:00
lat9nq
80669058c7 settings,general: Rename/reorder setting ids 2023-07-21 10:56:07 -04:00
lat9nq
e4bde3a1f5 shared_widget: Fix includes 2023-07-21 10:56:07 -04:00
lat9nq
4e18f8dbe9 shared_widget: Complete refactoring
Reduces code bloat a good bit by moving code specific to each sub widget
to their own functions.
2023-07-21 10:56:07 -04:00
lat9nq
1d7fb41d59 shared_widget: Refactor again
Starting with combobox

Putting code specific to the sub-widget in their own function.
2023-07-21 10:56:07 -04:00
lat9nq
7fa19e6d0a c_per_game: Inform when settings might not be configurable 2023-07-21 10:56:07 -04:00
lat9nq
a8d8670b73 shared_translation: Fix pragma once 2023-07-21 10:56:07 -04:00
lat9nq
302903ef12 shared_translation: Add translation for AstcRecompression 2023-07-21 10:56:07 -04:00
lat9nq
71fe7e39b6 configure_system: Hide locale warn at start 2023-07-21 10:56:07 -04:00
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.
2023-07-21 10:56:07 -04:00
lat9nq
a41f271600 configuration: Workaround for Windows Qt bug
Odd issue happens that dragging the cpu or system tabs in custom configs
would cause the window to take up the entire verticle space of the
screen.
2023-07-21 10:56:07 -04:00
lat9nq
51ecf3cb5d shared_translation: Add missing tooltips 2023-07-21 10:56:07 -04:00
lat9nq
4119adeb56 configuration: Clean up includes a bit 2023-07-21 10:56:07 -04:00
lat9nq
6034e7508e configuration_shared: Remove old custom config setup functions 2023-07-21 10:56:07 -04:00
lat9nq
5e60826357 configure_cpu: Generate UI 2023-07-21 10:56:07 -04:00