mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-27 04:41:21 -08:00
Merge pull request #344 from Yllodra/Qt-Oddities
Allow focus on the Qt render widget
This commit is contained in:
commit
dedbdb2dfb
@ -230,12 +230,15 @@ void GMainWindow::ToggleWindowMode()
|
|||||||
render_window->setParent(nullptr);
|
render_window->setParent(nullptr);
|
||||||
render_window->setVisible(true);
|
render_window->setVisible(true);
|
||||||
render_window->RestoreGeometry();
|
render_window->RestoreGeometry();
|
||||||
|
render_window->setFocusPolicy(Qt::NoFocus);
|
||||||
}
|
}
|
||||||
else if (!enable && render_window->parent() == nullptr)
|
else if (!enable && render_window->parent() == nullptr)
|
||||||
{
|
{
|
||||||
render_window->BackupGeometry();
|
render_window->BackupGeometry();
|
||||||
ui.horizontalLayout->addWidget(render_window);
|
ui.horizontalLayout->addWidget(render_window);
|
||||||
render_window->setVisible(true);
|
render_window->setVisible(true);
|
||||||
|
render_window->setFocusPolicy(Qt::ClickFocus);
|
||||||
|
render_window->setFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user