blob: 058341d1f8775891e2aeb955db3c1491f87056b0 (
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
|
#ifndef WEBVIEW_H
#define WEBVIEW_H
#include <QKeyEvent>
#include <QWebEngineView>
#include "settingsmanager.h"
class WebView : public QWebEngineView {
Q_OBJECT
public:
WebView(QWidget *parent = nullptr, QStringList dictionaries = {});
protected:
void contextMenuEvent(QContextMenuEvent *event) override;
void wheelEvent(QWheelEvent *event) override;
private:
QStringList m_dictionaries;
};
#endif // WEBVIEW_H
|