1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-09 15:10:45 +00:00

Ladybird: Implement EventLoopPluginQt::quit()

This breaks out of the main Qt event loop.
This commit is contained in:
Andreas Kling 2022-10-08 11:01:17 +02:00 committed by Andrew Kaster
parent 6fff03713c
commit 7362755f30
2 changed files with 6 additions and 0 deletions

View File

@ -37,4 +37,9 @@ NonnullRefPtr<Web::Platform::Timer> EventLoopPluginQt::create_timer()
return TimerQt::create();
}
void EventLoopPluginQt::quit()
{
QCoreApplication::quit();
}
}

View File

@ -18,6 +18,7 @@ public:
virtual void spin_until(Function<bool()> goal_condition) override;
virtual void deferred_invoke(Function<void()>) override;
virtual NonnullRefPtr<Web::Platform::Timer> create_timer() override;
virtual void quit() override;
};
}