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:
parent
22b09f7164
commit
f4d383a354
@ -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);
|
||||
|
@ -21,6 +21,7 @@ class AboutProjectView : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
void changeEvent(QEvent *event) override;
|
||||
public:
|
||||
explicit AboutProjectView(QWidget * parent = 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user