aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webpage.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-12-20 14:57:07 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-12-20 14:57:07 +0100
commitf66090da906348aea769173c2d2333015a898c84 (patch)
tree9a22d7ea632f4b16b604aed4565dbeb28bc4727e /src/webengine/webpage.h
parentCan now open links in new tab (diff)
downloadsmolbote-f66090da906348aea769173c2d2333015a898c84.tar.xz
Added SSL cert warnings
Diffstat (limited to 'src/webengine/webpage.h')
-rw-r--r--src/webengine/webpage.h19
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