summaryrefslogtreecommitdiff
path: root/libre/parley/libre.patch
blob: 5e95ed0fd6f916f9c35db34b433238b6f9089a09 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
diff -rupN parley-17.12.1.old/CMakeLists.txt parley-17.12.1/CMakeLists.txt
--- parley-17.12.1.old/CMakeLists.txt	2018-01-17 18:16:34.530616323 +0100
+++ parley-17.12.1/CMakeLists.txt	2018-01-17 18:28:26.597544722 +0100
@@ -21,7 +21,7 @@ find_package(Qt5 ${REQUIRED_QT_VERSION}
   Svg
   Concurrent
   Multimedia
-  WebEngineWidgets
+  WebKitWidgets
 )
 
 find_package(KF5 5.22 MODULE REQUIRED COMPONENTS
@@ -104,7 +104,7 @@ set( parley_LINK_LIBS
   KF5::Notifications
   KF5::Crash
   KF5::CoreAddons
-  Qt5::WebEngineWidgets
+  Qt5::WebKitWidgets
 )
 
 message(STATUS "cmake cflags ${CMAKE_C_FLAGS}")
diff -rupN parley-17.12.1.old/src/editor/browserwidget.cpp parley-17.12.1/src/editor/browserwidget.cpp
--- parley-17.12.1.old/src/editor/browserwidget.cpp	2018-01-17 18:16:34.527282963 +0100
+++ parley-17.12.1/src/editor/browserwidget.cpp	2018-01-17 18:25:59.043296112 +0100
@@ -16,7 +16,7 @@
 #include "browserwidget.h"
 
 #include <keduvocexpression.h>
-#include <QtWebEngineWidgets/QWebEngineView>
+#include <QtWebKitWidgets/QWebView>
 
 #include <QDragEnterEvent>
 
@@ -29,7 +29,7 @@ BrowserWidget::BrowserWidget(QWidget *pa
     m_entry = 0;
     m_currentProvider = 0; ///@todo kconfig?
 
-    m_htmlPart = new QWebEngineView(widget);
+    m_htmlPart = new QWebView(widget);
     QHBoxLayout *layout = new QHBoxLayout(widget);
     widget->setLayout(layout);
     layout->addWidget(m_htmlPart);
diff -rupN parley-17.12.1.old/src/editor/browserwidget.h parley-17.12.1/src/editor/browserwidget.h
--- parley-17.12.1.old/src/editor/browserwidget.h	2018-01-17 18:16:34.527282963 +0100
+++ parley-17.12.1/src/editor/browserwidget.h	2018-01-17 18:24:41.782813266 +0100
@@ -18,7 +18,7 @@
 
 
 #include "ui_browserwidget.h"
-#include <QtWebEngineWidgets/QWebEngineView>
+#include <QtWebKitWidgets/QWebView>
 
 class KEduVocExpression;
 
@@ -63,7 +63,7 @@ private:
     /// Selection in the doc - if more than one row is selected behavior is different
     KEduVocExpression* m_entry;
 
-    QWebEngineView *m_htmlPart;
+    QWebView *m_htmlPart;
     QList<DictionaryProvider> m_providers;
     int m_currentProvider;
 };