blob: e03fa49dfcbfbb9fbfb8c3e52769ff627117316a (
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 dictionaries;
QSettings settings;
};
#endif // WEBVIEW_H
|