mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-17 12:27:18 +01:00
Merge pull request #3987 from zhaowenlan1779/language-config-fix-2
citra_qt/configuration: retranslate hotkey widget on language change
This commit is contained in:
commit
6bc87cdf3e
@ -76,4 +76,5 @@ void ConfigureGeneral::onLanguageChanged(int index) {
|
|||||||
|
|
||||||
void ConfigureGeneral::retranslateUi() {
|
void ConfigureGeneral::retranslateUi() {
|
||||||
ui->retranslateUi(this);
|
ui->retranslateUi(this);
|
||||||
|
ui->hotkeysDialog->retranslateUi();
|
||||||
}
|
}
|
||||||
|
@ -181,7 +181,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||||
<item>
|
<item>
|
||||||
<widget class="GHotkeysDialog" name="widget" native="true"/>
|
<widget class="GHotkeysDialog" name="hotkeysDialog" native="true"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
@ -88,3 +88,7 @@ GHotkeysDialog::GHotkeysDialog(QWidget* parent) : QWidget(parent) {
|
|||||||
ui.treeWidget->resizeColumnToContents(0);
|
ui.treeWidget->resizeColumnToContents(0);
|
||||||
ui.treeWidget->resizeColumnToContents(1);
|
ui.treeWidget->resizeColumnToContents(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GHotkeysDialog::retranslateUi() {
|
||||||
|
ui.retranslateUi(this);
|
||||||
|
}
|
||||||
|
@ -58,6 +58,7 @@ class GHotkeysDialog : public QWidget {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
explicit GHotkeysDialog(QWidget* parent = nullptr);
|
explicit GHotkeysDialog(QWidget* parent = nullptr);
|
||||||
|
void retranslateUi();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::hotkeys ui;
|
Ui::hotkeys ui;
|
||||||
|
Loading…
Reference in New Issue
Block a user