diff options
| author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-05-08 22:37:03 -0400 |
|---|---|---|
| committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-21 10:56:07 -0400 |
| commit | f66d617107e45f8213643f2bbaa5f58878c3d3a6 (patch) | |
| tree | dce6687605ba2f3d195d75aec44a92769e95455f /src/yuzu/configuration/configuration_shared.h | |
| parent | d35577d3ed0bfc56ddf85a2e8b163d9d02bec809 (diff) | |
configuration: Move CreateWidget to a class
We were passing so many objects between the function and the caller that
it needed to be redesigned.
Diffstat (limited to 'src/yuzu/configuration/configuration_shared.h')
| -rw-r--r-- | src/yuzu/configuration/configuration_shared.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/yuzu/configuration/configuration_shared.h b/src/yuzu/configuration/configuration_shared.h index ef3b7c9a9..0a0a92ae5 100644 --- a/src/yuzu/configuration/configuration_shared.h +++ b/src/yuzu/configuration/configuration_shared.h @@ -13,8 +13,6 @@ #include "common/settings.h" #include "yuzu/configuration/shared_translation.h" -class QPushButton; - namespace ConfigurationShared { class Tab : public QWidget { @@ -43,22 +41,6 @@ enum class CheckState { Count, // Simply the number of states, not a valid checkbox state }; -enum class RequestType { - Default, - ComboBox, - SpinBox, - Slider, - ReverseSlider, - LineEdit, - MaxEnum, -}; - -std::tuple<QWidget*, void*, QPushButton*> CreateWidget( - Settings::BasicSetting* setting, const TranslationMap& translations, QWidget* parent, - bool runtime_lock, std::forward_list<std::function<void(bool)>>& apply_funcs, - RequestType request = RequestType::Default, bool managed = true, float multiplier = 1.0f, - const std::string& text_box_default = ""); - // Global-aware apply and set functions // ApplyPerGameSetting, given a Settings::Setting and a Qt UI element, properly applies a Setting |
