Commit Graph

5 Commits

Author SHA1 Message Date
Eike Ziller
12ea33446d Help/litehtml: Support scaling
Scale the paint area for the HTML document

Change-Id: I75aa5f2bf057df7b2b160b2a005172ff88dbb2b7
Reviewed-by: hjk <hjk@qt.io>
2019-09-17 13:51:27 +00:00
Eike Ziller
dff7e1515a Help/litehtml: Implement text search
Build an index between (visible) text and litehtml elements, so we can
use the regular text search functionality of Qt.

Change-Id: I2bf29628482f81c67b20b9a02d7808a330a073eb
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2019-09-17 12:58:25 +00:00
Eike Ziller
4f19baaf7c Help: Remove hack for litehtml issue with inline tables
https://github.com/litehtml/litehtml/issues/91 is fixed.

Change-Id: I2f44975246831ef9b4b30cbd79407a1639988cb8
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2019-09-11 08:17:43 +00:00
Eike Ziller
62d16e437a Help: Add context menu to litehtml backend
Change-Id: I051984e360b41d17d32cff80fd1d4017fc81dae6
Reviewed-by: hjk <hjk@qt.io>
2019-09-10 12:56:51 +00:00
Eike Ziller
0efd65e07e 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 <hjk@qt.io>
2019-08-28 08:06:20 +00:00