aboutsummaryrefslogtreecommitdiff
path: root/src/webview.h
blob: b896ad6e9b238c01bef3ddd8a71a6022cde9a150 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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