mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-26 18:08:58 +02:00
qt: continue event loop during game close
This commit is contained in:
parent
f631825247
commit
1eb9cb8ec3
4 changed files with 64 additions and 14 deletions
|
|
@ -259,3 +259,9 @@ void OverlayDialog::InputThread() {
|
|||
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
||||
}
|
||||
}
|
||||
|
||||
void OverlayDialog::keyPressEvent(QKeyEvent* e) {
|
||||
if (!ui->buttonsDialog->isHidden() || e->key() != Qt::Key_Escape) {
|
||||
QDialog::keyPressEvent(e);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ private:
|
|||
|
||||
/// The thread where input is being polled and processed.
|
||||
void InputThread();
|
||||
void keyPressEvent(QKeyEvent* e) override;
|
||||
|
||||
std::unique_ptr<Ui::OverlayDialog> ui;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue