diff options
author | 2021-04-09 10:23:26 +0530 | |
---|---|---|
committer | 2021-04-09 10:23:26 +0530 | |
commit | 2b3f192127466b044e87a39020ef57d734793f38 (patch) | |
tree | 02ab3529d0a2c481856e73dcd8fc29472cd559e8 /src/webview.h | |
parent | be673a4a1e539307517439d0a8696afa681d8cb6 (diff) | |
download | whatsie-2b3f192127466b044e87a39020ef57d734793f38.tar.gz whatsie-2b3f192127466b044e87a39020ef57d734793f38.zip |
added webview class
new dictionaries deployment strategy
Diffstat (limited to 'src/webview.h')
-rw-r--r-- | src/webview.h | 22 |
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 |