mirror of
https://github.com/86Box/86Box.git
synced 2026-02-25 04:45:31 -07:00
Resize renderer view back on Windows on language selection changes (#6302)
This commit is contained in:
@@ -2306,7 +2306,14 @@ MainWindow::changeEvent(QEvent *event)
|
||||
{
|
||||
#ifdef Q_OS_WINDOWS
|
||||
if (event->type() == QEvent::LanguageChange) {
|
||||
auto size = this->centralWidget()->size();
|
||||
QApplication::setFont(QFont(ProgSettings::getFontName(lang_id), 9));
|
||||
QApplication::processEvents();
|
||||
main_window->centralWidget()->setFixedSize(size);
|
||||
QApplication::processEvents();
|
||||
if (vid_resize == 1) {
|
||||
main_window->centralWidget()->setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
QWidget::changeEvent(event);
|
||||
|
||||
Reference in New Issue
Block a user