1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +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());
}
void AboutProjectView::changeEvent(QEvent *event)
{
if(event->type() == QEvent::LanguageChange)
ui->retranslateUi(this);
QWidget::changeEvent(event);
}
void AboutProjectView::on_updatesButton_clicked()
{
UpdateDialog::showUpdateDialog(true);

View File

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