blob: 81f5f4363da53cbcb78fa86301f8647bca4bc0b6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|