1
0
Fork 0

Merge pull request #3987 from zhaowenlan1779/language-config-fix-2

citra_qt/configuration: retranslate hotkey widget on language change
This commit is contained in:
James Rowe 2018-08-02 11:15:27 -06:00 committed by GitHub
commit 6bc87cdf3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View File

@ -76,4 +76,5 @@ void ConfigureGeneral::onLanguageChanged(int index) {
void ConfigureGeneral::retranslateUi() {
ui->retranslateUi(this);
ui->hotkeysDialog->retranslateUi();
}

View File

@ -181,7 +181,7 @@
<item>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="GHotkeysDialog" name="widget" native="true"/>
<widget class="GHotkeysDialog" name="hotkeysDialog" native="true"/>
</item>
</layout>
</item>

View File

@ -88,3 +88,7 @@ GHotkeysDialog::GHotkeysDialog(QWidget* parent) : QWidget(parent) {
ui.treeWidget->resizeColumnToContents(0);
ui.treeWidget->resizeColumnToContents(1);
}
void GHotkeysDialog::retranslateUi() {
ui.retranslateUi(this);
}

View File

@ -58,6 +58,7 @@ class GHotkeysDialog : public QWidget {
public:
explicit GHotkeysDialog(QWidget* parent = nullptr);
void retranslateUi();
private:
Ui::hotkeys ui;