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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user