summaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_web.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-06-05 18:39:46 -0400
committerLioncash <mathew1800@gmail.com>2019-06-05 21:57:21 -0400
commitc09ff382a41cfc631efa9392bdb3143bd4c713a5 (patch)
treea1755331546012b9c1e5711d78372bc4dda1bce7 /src/yuzu/configuration/configure_web.h
parent8d7a012297ea884f0309ed2207eeb5e6c8d6a495 (diff)
yuzu/configuration: Make all widgets and dialogs aware of language changes
To prepare for translation support, this makes all of the widgets cognizant of the language change event that occurs whenever installTranslator() is called and automatically retranslates their text where necessary. This is important as calling the backing UI's retranslateUi() is often not enough, particularly in cases where we add our own strings that aren't controlled by it. In that case we need to manually refresh the strings ourselves.
Diffstat (limited to 'src/yuzu/configuration/configure_web.h')
-rw-r--r--src/yuzu/configuration/configure_web.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_web.h b/src/yuzu/configuration/configure_web.h
index 49bee171b..9054711ea 100644
--- a/src/yuzu/configuration/configure_web.h
+++ b/src/yuzu/configuration/configure_web.h
@@ -20,9 +20,11 @@ public:
~ConfigureWeb() override;
void ApplyConfiguration();
- void RetranslateUI();
private:
+ void changeEvent(QEvent* event) override;
+ void RetranslateUI();
+
void RefreshTelemetryID();
void OnLoginChanged();
void VerifyLogin();