diff options
Diffstat (limited to 'src/webview.h')
| -rw-r--r-- | src/webview.h | 25 |
1 files changed, 25 insertions, 0 deletions
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 <QSettings> +#include <QWebEngineView> +#include <QKeyEvent> + +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 |
