Controls: react to language change

This commit is contained in:
Marcin Mikołajczyk 2013-02-11 14:44:46 +01:00
parent de07d7c1f6
commit 151abd60a7
3 changed files with 12 additions and 2 deletions

View File

@ -70,6 +70,15 @@ void Controls::showEvent(QShowEvent*)
}
}
void Controls::changeEvent(QEvent *event)
{
if (event)
if (event->type() == QEvent::LanguageChange)
ui->retranslateUi(this);
QDialog::changeEvent(event);
}
void Controls::releaseLock()
{
EmuThread_LockDraw(false);

View File

@ -31,6 +31,7 @@ public:
~Controls();
void showEvent(QShowEvent *);
void changeEvent(QEvent *);
private slots:
void releaseLock();
void on_buttonBox_accepted();

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>618</width>
<height>351</height>
<height>357</height>
</rect>
</property>
<property name="sizePolicy">
@ -17,7 +17,7 @@
</sizepolicy>
</property>
<property name="windowTitle">
<string>Controls</string>
<string comment="Controls window title">Controls</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>