mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
7362755f30
This breaks out of the main Qt event loop.
24 lines
588 B
C++
24 lines
588 B
C++
/*
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Platform/EventLoopPlugin.h>
|
|
|
|
namespace Ladybird {
|
|
|
|
class EventLoopPluginQt final : public Web::Platform::EventLoopPlugin {
|
|
public:
|
|
EventLoopPluginQt();
|
|
virtual ~EventLoopPluginQt() override;
|
|
|
|
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;
|
|
};
|
|
|
|
}
|