From 3a2567c97cc7dc03d662a7609c979aef9e0a80ae Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 12 Sep 2018 01:06:50 -0400 Subject: yuzu/configure_gamelist: Move combo box initializtion to their own functions Keeps the individual initialization of the combo boxes logically separate. We also shouldn't be dumping this sort of thing in the constructor directly. --- src/yuzu/configuration/configure_gamelist.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/yuzu/configuration/configure_gamelist.h') diff --git a/src/yuzu/configuration/configure_gamelist.h b/src/yuzu/configuration/configure_gamelist.h index 94fba6373..71fd67e99 100644 --- a/src/yuzu/configuration/configure_gamelist.h +++ b/src/yuzu/configuration/configure_gamelist.h @@ -23,6 +23,8 @@ public: private: void setConfiguration(); -private: + void InitializeIconSizeComboBox(); + void InitializeRowComboBoxes(); + std::unique_ptr ui; }; -- cgit v1.2.3 From e89c22c1471d02e5e9c3fe3f5fd4e6cb7800f6cc Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 12 Sep 2018 01:11:25 -0400 Subject: yuzu/configure_gamelist: Make combo box strings translatable Given these are shown to the user, they should be translatable. While we're at it, also set up the dialog to automatically retranslate the dialog along with the combo boxes if it receives a LanguageChange event. --- src/yuzu/configuration/configure_gamelist.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/yuzu/configuration/configure_gamelist.h') diff --git a/src/yuzu/configuration/configure_gamelist.h b/src/yuzu/configuration/configure_gamelist.h index 71fd67e99..ff7406c60 100644 --- a/src/yuzu/configuration/configure_gamelist.h +++ b/src/yuzu/configuration/configure_gamelist.h @@ -23,6 +23,9 @@ public: private: void setConfiguration(); + void changeEvent(QEvent*) override; + void RetranslateUI(); + void InitializeIconSizeComboBox(); void InitializeRowComboBoxes(); -- cgit v1.2.3