aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/yuzu/configuration/shared_widget.h
diff options
context:
space:
mode:
authorlat9nq <[email protected]>2023-05-18 22:17:36 -0400
committerlat9nq <[email protected]>2023-07-21 10:56:07 -0400
commitc5a3642cb62b4676d0c8b98949daec20e7c02e6b (patch)
tree2954ab28d4690054016c01cfa2bdf40ccb14482d /src/yuzu/configuration/shared_widget.h
parent86ed82cddefe7ec30393072db84791f9bb7dfc69 (diff)
downloadyuzu-android-c5a3642cb62b4676d0c8b98949daec20e7c02e6b.tar.gz
yuzu-android-c5a3642cb62b4676d0c8b98949daec20e7c02e6b.zip
configuration: Use a mapping of setting value to name
Makes comboboxes always correspond to the value of the setting they're modifying.
Diffstat (limited to 'src/yuzu/configuration/shared_widget.h')
-rw-r--r--src/yuzu/configuration/shared_widget.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/yuzu/configuration/shared_widget.h b/src/yuzu/configuration/shared_widget.h
index 331316040..6077f045d 100644
--- a/src/yuzu/configuration/shared_widget.h
+++ b/src/yuzu/configuration/shared_widget.h
@@ -35,13 +35,12 @@ class Widget : public QWidget {
Q_OBJECT
public:
- Widget(Settings::BasicSetting* setting, const TranslationMap& translations, QWidget* parent,
- bool runtime_lock, std::forward_list<std::function<void(bool)>>& apply_funcs_,
+ Widget(Settings::BasicSetting* setting, const TranslationMap& translations,
+ const ComboboxTranslationMap& combobox_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,
Settings::BasicSetting* other_setting = nullptr,
const QString& string = QStringLiteral(""));
- Widget(Settings::BasicSetting* setting_, const TranslationMap& translations_, QWidget* parent_,
- std::forward_list<std::function<void(bool)>>& apply_funcs_);
virtual ~Widget();
bool Valid();
@@ -77,6 +76,7 @@ private:
QWidget* parent;
const TranslationMap& translations;
+ const ComboboxTranslationMap& combobox_enumerations;
Settings::BasicSetting& setting;
std::forward_list<std::function<void(bool)>>& apply_funcs;