aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/help/help.pro
diff options
context:
space:
mode:
authorEike Ziller <[email protected]>2019-07-29 15:30:58 +0200
committerEike Ziller <[email protected]>2019-08-28 08:06:20 +0000
commit0efd65e07eb5090d50027ddec3d93960a7e075ac (patch)
tree1628743b3fe50199b0403cc4e3dab002c07d2249 /src/plugins/help/help.pro
parent7855c9bb806d4d33561c713b9f7b1d3259995946 (diff)
Help: Add litehtml based viewer backend
For CMake add litehtml installation path to CMAKE_PREFIX_PATH For qmake pass litehtml installation path via LITEHTML_INSTALL_DIR qmake variable Release build of litehtml is recommended. The litehtml backend is used by default when available, you can force QTextBrowser again with the environment variable "QTC_HELPVIEWER_BACKEND=textbrowser". Some things are not implemented yet: - Text search - Context menu - Shift-drag to extend existing selection Change-Id: I79f989e5fe2063de2e9832abbed19b24d7a1a1fe Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/help/help.pro')
-rw-r--r--src/plugins/help/help.pro6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/help/help.pro b/src/plugins/help/help.pro
index 76c6db63a21..5d9cf340781 100644
--- a/src/plugins/help/help.pro
+++ b/src/plugins/help/help.pro
@@ -78,6 +78,12 @@ osx {
}
}
+!isEmpty(LITEHTML_INSTALL_DIR) {
+ include(qlitehtml/qlitehtml.pri)
+ HEADERS += litehtmlhelpviewer.h
+ SOURCES += litehtmlhelpviewer.cpp
+ DEFINES += QTC_LITEHTML_HELPVIEWER
+}
RESOURCES += help.qrc
include(../../shared/help/help.pri)