From d830bfc8ce7c6763d074beafdde7cab1835d31f9 Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Tue, 7 Mar 2023 21:11:06 +0600 Subject: Import Upstream version 4.12.0 --- src/webview.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/webview.h (limited to 'src/webview.h') diff --git a/src/webview.h b/src/webview.h new file mode 100644 index 0000000..81f5f43 --- /dev/null +++ b/src/webview.h @@ -0,0 +1,25 @@ +#ifndef WEBVIEW_H +#define WEBVIEW_H + +#include +#include +#include + +class WebView : public QWebEngineView { + Q_OBJECT + +public: + WebView(QWidget *parent = nullptr, QStringList dictionaries = {}); + +protected: + void contextMenuEvent(QContextMenuEvent *event) override; + +protected slots: + void wheelEvent(QWheelEvent *event); + +private: + QStringList m_dictionaries; + QSettings settings; +}; + +#endif // WEBVIEW_H -- cgit v1.2.3