diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-20 14:57:07 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-20 14:57:07 +0100 |
commit | f66090da906348aea769173c2d2333015a898c84 (patch) | |
tree | 9a22d7ea632f4b16b604aed4565dbeb28bc4727e /src/webengine/webpage.h | |
parent | Can now open links in new tab (diff) | |
download | smolbote-f66090da906348aea769173c2d2333015a898c84.tar.xz |
Added SSL cert warnings
Diffstat (limited to 'src/webengine/webpage.h')
-rw-r--r-- | src/webengine/webpage.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/webengine/webpage.h b/src/webengine/webpage.h new file mode 100644 index 0000000..6ae0802 --- /dev/null +++ b/src/webengine/webpage.h @@ -0,0 +1,19 @@ +#ifndef WEBPAGE_H +#define WEBPAGE_H + +#include <QWebEnginePage> + +class WebPage : public QWebEnginePage +{ + Q_OBJECT +public: + explicit WebPage(QWebEngineProfile *profile, QObject *parent = nullptr); + +signals: + void certificateErrorMessage(const QString &message); + +protected: + bool certificateError(const QWebEngineCertificateError &certificateError); +}; + +#endif // WEBPAGE_H |