From 616e680aa8af8f5056b5133dd44258c252ca656f Mon Sep 17 00:00:00 2001 From: aqua Date: Tue, 16 Aug 2022 16:19:04 +0300 Subject: Turn WebEngine into a plugin --- plugins/webengine/webview.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 plugins/webengine/webview.h (limited to 'plugins/webengine/webview.h') diff --git a/plugins/webengine/webview.h b/plugins/webengine/webview.h new file mode 100644 index 00000000..0b8d0dae --- /dev/null +++ b/plugins/webengine/webview.h @@ -0,0 +1,25 @@ +/* ============================================================ + * The rekonq project + * ============================================================ + * SPDX-License-Identifier: GPL-3.0-only + * Copyright (C) 2022 aqua + * ============================================================ + * Description: Qt WebEngine View + * ============================================================ */ + +#pragma once + +#include "rview.hpp" + +class QWebEngineView; + +class WebView final : public rView { + Q_OBJECT + +public: + explicit WebView(const QUrl &url = QUrl(), QWidget *parent = nullptr); + ~WebView() final = default; + +private: + QWebEngineView *view; +}; -- cgit v1.2.1