libre.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. diff -rupN parley-17.12.1.old/CMakeLists.txt parley-17.12.1/CMakeLists.txt
  2. --- parley-17.12.1.old/CMakeLists.txt 2018-01-17 18:16:34.530616323 +0100
  3. +++ parley-17.12.1/CMakeLists.txt 2018-01-17 18:28:26.597544722 +0100
  4. @@ -21,7 +21,7 @@ find_package(Qt5 ${REQUIRED_QT_VERSION}
  5. Svg
  6. Concurrent
  7. Multimedia
  8. - WebEngineWidgets
  9. + WebKitWidgets
  10. )
  11. find_package(KF5 5.22 MODULE REQUIRED COMPONENTS
  12. @@ -104,7 +104,7 @@ set( parley_LINK_LIBS
  13. KF5::Notifications
  14. KF5::Crash
  15. KF5::CoreAddons
  16. - Qt5::WebEngineWidgets
  17. + Qt5::WebKitWidgets
  18. )
  19. message(STATUS "cmake cflags ${CMAKE_C_FLAGS}")
  20. diff -rupN parley-17.12.1.old/src/editor/browserwidget.cpp parley-17.12.1/src/editor/browserwidget.cpp
  21. --- parley-17.12.1.old/src/editor/browserwidget.cpp 2018-01-17 18:16:34.527282963 +0100
  22. +++ parley-17.12.1/src/editor/browserwidget.cpp 2018-01-17 18:25:59.043296112 +0100
  23. @@ -16,7 +16,7 @@
  24. #include "browserwidget.h"
  25. #include <keduvocexpression.h>
  26. -#include <QtWebEngineWidgets/QWebEngineView>
  27. +#include <QtWebKitWidgets/QWebView>
  28. #include <QDragEnterEvent>
  29. @@ -29,7 +29,7 @@ BrowserWidget::BrowserWidget(QWidget *pa
  30. m_entry = 0;
  31. m_currentProvider = 0; ///@todo kconfig?
  32. - m_htmlPart = new QWebEngineView(widget);
  33. + m_htmlPart = new QWebView(widget);
  34. QHBoxLayout *layout = new QHBoxLayout(widget);
  35. widget->setLayout(layout);
  36. layout->addWidget(m_htmlPart);
  37. diff -rupN parley-17.12.1.old/src/editor/browserwidget.h parley-17.12.1/src/editor/browserwidget.h
  38. --- parley-17.12.1.old/src/editor/browserwidget.h 2018-01-17 18:16:34.527282963 +0100
  39. +++ parley-17.12.1/src/editor/browserwidget.h 2018-01-17 18:24:41.782813266 +0100
  40. @@ -18,7 +18,7 @@
  41. #include "ui_browserwidget.h"
  42. -#include <QtWebEngineWidgets/QWebEngineView>
  43. +#include <QtWebKitWidgets/QWebView>
  44. class KEduVocExpression;
  45. @@ -63,7 +63,7 @@ private:
  46. /// Selection in the doc - if more than one row is selected behavior is different
  47. KEduVocExpression* m_entry;
  48. - QWebEngineView *m_htmlPart;
  49. + QWebView *m_htmlPart;
  50. QList<DictionaryProvider> m_providers;
  51. int m_currentProvider;
  52. };