1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Retranslate About tab on language change

This commit is contained in:
Ivan Savenko
2023-07-17 16:27:21 +03:00
parent 22b09f7164
commit f4d383a354
2 changed files with 9 additions and 0 deletions

View File

@@ -29,6 +29,14 @@ AboutProjectView::AboutProjectView(QWidget * parent)
ui->lineEditOperatingSystem->setText(QSysInfo::prettyProductName()); ui->lineEditOperatingSystem->setText(QSysInfo::prettyProductName());
} }
void AboutProjectView::changeEvent(QEvent *event)
{
if(event->type() == QEvent::LanguageChange)
ui->retranslateUi(this);
QWidget::changeEvent(event);
}
void AboutProjectView::on_updatesButton_clicked() void AboutProjectView::on_updatesButton_clicked()
{ {
UpdateDialog::showUpdateDialog(true); UpdateDialog::showUpdateDialog(true);

View File

@@ -21,6 +21,7 @@ class AboutProjectView : public QWidget
{ {
Q_OBJECT Q_OBJECT
void changeEvent(QEvent *event) override;
public: public:
explicit AboutProjectView(QWidget * parent = 0); explicit AboutProjectView(QWidget * parent = 0);