Paste #269400

   
pasted on 27.04.2023 01:40
  • Edit to this paste
  • Print
  • Raw
  • Compare with paste
    #  
  • Toggle line numbers
  • Syntax highlighting  
Text paste
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
diff --git a/src/Gui/EmbeddedWebView.h b/src/Gui/EmbeddedWebView.h
index 9ac83d15..e20490fc 100644
--- a/src/Gui/EmbeddedWebView.h
+++ b/src/Gui/EmbeddedWebView.h
@@ -22,19 +22,19 @@
 #ifndef EMBEDDEDWEBVIEW_H
 #define EMBEDDEDWEBVIEW_H
 
-#include <QWebPluginFactory>
-#include <QWebView>
+// #include <QWebPluginFactory>
+#include <QWebEngineView>
 
 namespace Gui
 {
 
 
-/** @short An embeddable QWebView with some safety checks and modified resizing
+/** @short An embeddable QWebEngineView with some safety checks and modified resizing
 
-  This class configures the QWebView in such a way that it will prevent certain
+  This class configures the QWebEngineView in such a way that it will prevent certain
   dangerous (or unexpected, in the context of a MUA) features from being invoked.
 
-  Another function is to configure the QWebView in such a way that it resizes
+  Another function is to configure the QWebEngineView in such a way that it resizes
   itself to show all required contents.
 
   Note that you still have to provide a proper eventFilter in the parent widget
@@ -43,7 +43,7 @@ namespace Gui
   @see Gui::MessageView
 
   */
-class EmbeddedWebView: public QWebView
+class EmbeddedWebView: public QWebEngineView
 {
     Q_OBJECT
 public:
@@ -91,7 +91,7 @@ protected:
     ColorScheme m_colorScheme;
 };
 
-class ErrorCheckingPage: public QWebPage
+class ErrorCheckingPage: public QWebEnginePage
 {
     Q_OBJECT
 public:
Add Comment
Author