libre.patch 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. diff --git a/src/plugins/help/CMakeLists.txt b/src/plugins/help/CMakeLists.txt
  2. index a6711862..0eeea39c 100644
  3. --- a/src/plugins/help/CMakeLists.txt
  4. +++ b/src/plugins/help/CMakeLists.txt
  5. @@ -36,17 +36,6 @@ extend_qtc_plugin(Help
  6. macwebkithelpviewer.mm
  7. )
  8. -find_package(Qt5WebEngineWidgets QUIET)
  9. -extend_qtc_plugin(Help
  10. - CONDITION TARGET Qt5::WebEngineWidgets
  11. - FEATURE_INFO "QtWebEngine help viewer"
  12. - DEPENDS Qt5::WebEngineWidgets
  13. - DEFINES QTC_WEBENGINE_HELPVIEWER
  14. - SOURCES
  15. - webenginehelpviewer.cpp
  16. - webenginehelpviewer.h
  17. -)
  18. -
  19. if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/qlitehtml/litehtml/CMakeLists.txt)
  20. add_subdirectory(qlitehtml)
  21. else()
  22. diff --git a/src/plugins/help/help.pro b/src/plugins/help/help.pro
  23. index 7b58578e..c1627e89 100644
  24. --- a/src/plugins/help/help.pro
  25. +++ b/src/plugins/help/help.pro
  26. @@ -53,13 +53,6 @@ FORMS += docsettingspage.ui \
  27. filtersettingspage.ui \
  28. generalsettingspage.ui
  29. -!isEmpty(QT.webenginewidgets.name) {
  30. - QT += webenginewidgets
  31. - HEADERS += webenginehelpviewer.h
  32. - SOURCES += webenginehelpviewer.cpp
  33. - DEFINES += QTC_WEBENGINE_HELPVIEWER
  34. -}
  35. -
  36. osx {
  37. DEFINES += QTC_MAC_NATIVE_HELPVIEWER
  38. HEADERS += macwebkithelpviewer.h
  39. diff --git a/src/plugins/help/help.qbs b/src/plugins/help/help.qbs
  40. index e1268e72..0abaa91f 100644
  41. --- a/src/plugins/help/help.qbs
  42. +++ b/src/plugins/help/help.qbs
  43. @@ -10,7 +10,6 @@ Project {
  44. Depends { name: "Qt"; submodules: ["help", "network", "sql"]; }
  45. Depends { name: "Qt.printsupport" }
  46. - Depends { name: "Qt.webenginewidgets"; required: false }
  47. Depends { name: "Aggregation" }
  48. Depends { name: "Utils" }
  49. @@ -24,8 +23,6 @@ Project {
  50. cpp.defines: {
  51. var defines = base.concat(["QT_CLUCENE_SUPPORT"]);
  52. - if (Qt.webenginewidgets.present)
  53. - defines.push("QTC_WEBENGINE_HELPVIEWER");
  54. if (qlitehtml.present)
  55. defines.push("QTC_LITEHTML_HELPVIEWER")
  56. return defines;
  57. @@ -60,13 +57,6 @@ Project {
  58. ]
  59. }
  60. - Group {
  61. - name: "WebEngine Sources"
  62. - condition: Qt.webenginewidgets.present
  63. - files: [
  64. - "webenginehelpviewer.cpp", "webenginehelpviewer.h"
  65. - ]
  66. - }
  67. Group {
  68. name: "litehtml-specific sources"
  69. diff --git a/src/plugins/help/localhelpmanager.cpp b/src/plugins/help/localhelpmanager.cpp
  70. index f8a02eb7..f993a192 100644
  71. --- a/src/plugins/help/localhelpmanager.cpp
  72. +++ b/src/plugins/help/localhelpmanager.cpp
  73. @@ -31,12 +31,6 @@
  74. #include "helpviewer.h"
  75. #include "textbrowserhelpviewer.h"
  76. -#ifdef QTC_WEBENGINE_HELPVIEWER
  77. -#include "webenginehelpviewer.h"
  78. -#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
  79. -#include <QWebEngineUrlScheme>
  80. -#endif
  81. -#endif
  82. #ifdef QTC_LITEHTML_HELPVIEWER
  83. #include "litehtmlhelpviewer.h"
  84. #endif
  85. @@ -87,7 +81,6 @@ static const char kLastShownPagesZoomKey[] = "Help/LastShownPagesZoom";
  86. static const char kLastSelectedTabKey[] = "Help/LastSelectedTab";
  87. static const char kViewerBackend[] = "Help/ViewerBackend";
  88. -static const char kQtWebEngineBackend[] = "qtwebengine";
  89. static const char kTextBrowserBackend[] = "textbrowser";
  90. static const int kDefaultFallbackFontSize = 14;
  91. @@ -318,29 +311,13 @@ HelpViewerFactory LocalHelpManager::defaultViewerBackend()
  92. return *factory;
  93. }
  94. if (!backend.isEmpty())
  95. - qWarning("Help viewer backend \"%s\" not found, using default.", backend.constData());
  96. - const Utils::optional<HelpViewerFactory> factory = backendForId(kQtWebEngineBackend);
  97. - if (factory)
  98. - return *factory;
  99. + qWarning("Help viewer backend \"%s\" not found.", backend.constData());
  100. return backendForId(kTextBrowserBackend).value_or(HelpViewerFactory());
  101. }
  102. QVector<HelpViewerFactory> LocalHelpManager::viewerBackends()
  103. {
  104. QVector<HelpViewerFactory> result;
  105. -#ifdef QTC_WEBENGINE_HELPVIEWER
  106. -#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
  107. - static bool schemeRegistered = false;
  108. - if (!schemeRegistered) {
  109. - schemeRegistered = true;
  110. - QWebEngineUrlScheme scheme("qthelp");
  111. - scheme.setFlags(QWebEngineUrlScheme::LocalScheme | QWebEngineUrlScheme::LocalAccessAllowed);
  112. - QWebEngineUrlScheme::registerScheme(scheme);
  113. - }
  114. -#endif
  115. - result.append(
  116. - {kQtWebEngineBackend, tr("QtWebEngine"), []() { return new WebEngineHelpViewer; }});
  117. -#endif
  118. #ifdef QTC_LITEHTML_HELPVIEWER
  119. result.append({"litehtml", tr("litehtml"), []() { return new LiteHtmlHelpViewer; }});
  120. #endif
  121. diff --git a/tests/system/suite_general/tst_opencreator_qbs/testdata/projecttree_creator.tsv b/tests/system/suite_general/tst_opencreator_qbs/testdata/projecttree_creator.tsv
  122. index eee34382..b9413fc2 100644
  123. --- a/tests/system/suite_general/tst_opencreator_qbs/testdata/projecttree_creator.tsv
  124. +++ b/tests/system/suite_general/tst_opencreator_qbs/testdata/projecttree_creator.tsv
  125. @@ -8098,8 +8098,6 @@
  126. "qtcreator_pch.h" "5"
  127. "WebEngine Sources" "3"
  128. "help.qbs:56" "4"
  129. -"webenginehelpviewer.cpp" "4"
  130. -"webenginehelpviewer.h" "4"
  131. "ImageViewer" "2"
  132. "imageviewer.qbs:3" "3"
  133. "PluginMetaData" "3"
  134. diff --git a/tests/system/suite_general/tst_openqt_creator/testdata/projecttree_creator.tsv b/tests/system/suite_general/tst_openqt_creator/testdata/projecttree_creator.tsv
  135. index 4710adcf..486a0044 100644
  136. --- a/tests/system/suite_general/tst_openqt_creator/testdata/projecttree_creator.tsv
  137. +++ b/tests/system/suite_general/tst_openqt_creator/testdata/projecttree_creator.tsv
  138. @@ -7980,7 +7980,6 @@
  139. "searchtaskhandler.h" "4"
  140. "searchwidget.h" "4"
  141. "textbrowserhelpviewer.h" "4"
  142. -"webenginehelpviewer.h" "4"
  143. "xbelsupport.h" "4"
  144. "Sources" "3"
  145. "centralwidget.cpp" "4"
  146. @@ -8002,7 +8001,6 @@
  147. "searchtaskhandler.cpp" "4"
  148. "searchwidget.cpp" "4"
  149. "textbrowserhelpviewer.cpp" "4"
  150. -"webenginehelpviewer.cpp" "4"
  151. "xbelsupport.cpp" "4"
  152. "Forms" "3"
  153. "docsettingspage.ui" "4"