mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-18 21:27:52 +00:00
Controls: react to language change
This commit is contained in:
parent
de07d7c1f6
commit
151abd60a7
@ -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);
|
||||
|
@ -31,6 +31,7 @@ public:
|
||||
~Controls();
|
||||
|
||||
void showEvent(QShowEvent *);
|
||||
void changeEvent(QEvent *);
|
||||
private slots:
|
||||
void releaseLock();
|
||||
void on_buttonBox_accepted();
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user