aboutsummaryrefslogtreecommitdiff
path: root/src/webview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview.h')
-rw-r--r--src/webview.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/webview.h b/src/webview.h
new file mode 100644
index 0000000..b896ad6
--- /dev/null
+++ b/src/webview.h
@@ -0,0 +1,22 @@
+#ifndef WEBVIEW_H
+#define WEBVIEW_H
+
+#include <QWebEngineView>
+#include <QSettings>
+
+class WebView: public QWebEngineView
+{
+ Q_OBJECT
+
+public:
+ WebView(QWidget *parent = nullptr, QStringList dictionaries = {});
+
+protected:
+ void contextMenuEvent(QContextMenuEvent *event) override;
+
+private:
+ QStringList m_dictionaries;
+ QSettings settings;
+};
+
+#endif // WEBVIEW_H