mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-20 20:23:03 +02:00
Retranslate start game tab on language change
This commit is contained in:
parent
92b49370ed
commit
64db89711e
@ -20,6 +20,14 @@
|
||||
#include "../../lib/filesystem/Filesystem.h"
|
||||
#include "../../lib/VCMIDirs.h"
|
||||
|
||||
void StartGameTab::changeEvent(QEvent *event)
|
||||
{
|
||||
if(event->type() == QEvent::LanguageChange)
|
||||
ui->retranslateUi(this);
|
||||
|
||||
QWidget::changeEvent(event);
|
||||
}
|
||||
|
||||
StartGameTab::StartGameTab(QWidget * parent)
|
||||
: QWidget(parent)
|
||||
, ui(new Ui::StartGameTab)
|
||||
|
@ -39,6 +39,7 @@ class StartGameTab : public QWidget
|
||||
void refreshPresets();
|
||||
void refreshGameData();
|
||||
|
||||
void changeEvent(QEvent *event) override;
|
||||
public:
|
||||
explicit StartGameTab(QWidget * parent = nullptr);
|
||||
~StartGameTab();
|
||||
|
Loading…
Reference in New Issue
Block a user