mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 08:48:49 +00:00
LibWebView+Services+UI: Move the EventLoop implementations to LibWebView
We currently compile the Qt event loop files multiple times, for every target which wants to use them. This patch moves these to LibWebView as a central location to avoid this.
This commit is contained in:
parent
bd50a31be6
commit
9e1f001ffe
Notes:
github-actions[bot]
2024-11-11 12:36:54 +00:00
Author: https://github.com/trflynn89
Commit: 9e1f001ffe
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2269
17 changed files with 98 additions and 91 deletions
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Gregory Bertilson <zaggy1024@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWebView/EventLoop/EventLoopImplementationQt.h>
|
||||
#include <LibWebView/EventLoop/EventLoopImplementationQtEventTarget.h>
|
||||
|
||||
namespace WebView {
|
||||
|
||||
bool EventLoopImplementationQtEventTarget::event(QEvent* event)
|
||||
{
|
||||
return EventLoopManagerQt::event_target_received_event({}, event);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue