aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/webpage.cpp
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.cpp
parentCan now open links in new tab (diff)
downloadsmolbote-f66090da906348aea769173c2d2333015a898c84.tar.xz
Added SSL cert warnings
Diffstat (limited to 'src/webengine/webpage.cpp')
-rw-r--r--src/webengine/webpage.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/webengine/webpage.cpp b/src/webengine/webpage.cpp
new file mode 100644
index 0000000..79ba809
--- /dev/null
+++ b/src/webengine/webpage.cpp
@@ -0,0 +1,12 @@
+#include "webpage.h"
+
+WebPage::WebPage(QWebEngineProfile *profile, QObject *parent) :
+ QWebEnginePage(profile, parent)
+{
+}
+
+bool WebPage::certificateError(const QWebEngineCertificateError &certificateError)
+{
+ emit certificateErrorMessage(certificateError.errorDescription());
+ return certificateError.isOverridable();
+}