desktop/kchmviewer/fix-qt5-build.patch
2017-03-13 23:03:54 +00:00

25 lines
1.0 KiB
Diff

diff -Naur kchmviewer-7.7.orig/src/src.pro kchmviewer-7.7/src/src.pro
--- kchmviewer-7.7.orig/src/src.pro 2016-10-05 09:35:34.149265000 +0200
+++ kchmviewer-7.7/src/src.pro 2017-02-07 15:16:27.749908883 +0100
@@ -114,20 +114,10 @@
greaterThan(QT_MAJOR_VERSION, 4) {
# Qt 5
- greaterThan(QT_MINOR_VERSION, 5) {
- # Qt 5.6+
- error("You use Qt5.6+ - QWebEngine is not yet suitable for kchmviewer and is not supported")
- QT += webengine webenginewidgets
- DEFINES += USE_WEBENGINE
- SOURCES += viewwindow_webengine.cpp dataprovider_qwebengine.cpp
- HEADERS += dataprovider_qwebengine.h viewwindow_webengine.h
- } else {
- # Qt 5.0-5.5
QT += webkit webkitwidgets
DEFINES += USE_WEBKIT
SOURCES += viewwindow_webkit.cpp dataprovider_qwebkit.cpp
HEADERS += dataprovider_qwebkit.h viewwindow_webkit.h
- }
} else {
message("Qt4 is not supported anymore, please do not report any errors")
QT += webkit webkitwidgets