
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.
21 lines
332 B
C++
21 lines
332 B
C++
/*
|
|
* Copyright (c) 2023, Gregory Bertilson <zaggy1024@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QEvent>
|
|
#include <QObject>
|
|
|
|
namespace WebView {
|
|
|
|
class EventLoopImplementationQtEventTarget final : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
virtual bool event(QEvent* event) override;
|
|
};
|
|
|
|
}
|