aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Help: Fix jumping to anchors on elements that are not renderedHEADmasterEike Ziller2024-04-101-3/+8
| | | | | | | | | | | | | | themselves. litehtml v0.9 returns a placement of 0 for elements that don't have a renderer. Technically speaking that might even be correct, because these elements are not "placed". Search for a parent that does provide a placement. This fixes jumping to QML properties in the QML documentation. Task-number: QTCREATORBUG-30625 Change-Id: I1deb01d4e884ca39689f1444174ded0ceeb7cac6 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Update master CSS from litehtmlEike Ziller2024-03-061-47/+91
| | | | | | | | | This fixes a layout issue with the navigation bar of the Qt documentation and the width of the resulting document. Task-number: QTCREATORBUG-30459 Change-Id: I187af2ebfe6e35544c442f5413dc3166784416b0 Reviewed-by: Robert Löhning <robert.loehning@qt.io>
* Ensure the font pointer isn't nullJarek Kobus2024-02-261-1/+4
| | | | | | Task-number: QTCREATORBUG-30427 Change-Id: I5c917367873171e868cfc4e0e6a6b36e33645efe Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix qbs buildChristian Stenger2024-02-151-8/+31
| | | | | Change-Id: I711d87b7409d19fc404bfb90d2e07b0fefe9ce1a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Make it possible to opt-out of using system litehtmlEike Ziller2024-02-141-1/+4
| | | | | | | | | | Since litehtml is not API compatible through versions, chances are that a system litehtml is the wrong version. Make it easy to use the internal one. Change-Id: I7064acee4854aea2d6ea06abe4fead353948ab5b Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Suppress warnings from litehtml headers when compiling qlitehtmlEike Ziller2024-02-131-0/+5
| | | | | | | | | We do suppress warnings for compiling litehtml itself already, but the litehtml headers trigger compiler warnings when compiling qlitehtml too. Change-Id: I44e47498c3f9f94ccd6718d45b8a6583d5d9db02 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Make sure that test building is actually disabledEike Ziller2024-02-121-0/+1
| | | | | | | | | | | | LITEHTML_BUILD_TESTING is a CMake option(), and the "old" CMake behavior is that the option() overrides "normal" CMake variables instead of the other way round. Set CMake policy CMP0077 to the new behavior, which is to allow overriding option()s with normal CMake variables. Change-Id: I44964700f5e6f233ffae25859d10a93290a74779 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Update litehtml to v0.9Eike Ziller2024-02-065-246/+272
| | | | | | | | | | | | | | | | | | | | | - lots of smaller changes needed to be adapted to, like std::string instead of litehtml::tstring, std::list for child elements, and other mostly mechanical changes - element::is_visible vanished, and we don't get to the render items, so replaced that with our own version. render_item::is_visible would also take m_skip into account, so this might be wrong for some elements. (only relevant for the search index) - element::get_element_by_point was removed, replace by own depth-first iteration deepest_child_at_point. That takes a lot less properties into consideration compared to get_element_by_point, like z-order, no fixed position elements, etc Task-number: QTCREATORBUG-29169 Task-number: QTBUG-118990 Fixes: QTBUG-121861 Change-Id: I7264a8407f123f44ba47e47cecc57fbf31a85a3d Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Support turning antialiasing of fonts offEike Ziller2023-08-235-0/+24
| | | | | | Task-number: QTCREATORBUG-12177 Change-Id: Ibac20a6170d42237f1d7409c3ec18ae9af50811c Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Update litehtml to v0.6Kai Köhne2023-02-142-1/+1
| | | | | Change-Id: I4dab77f5b36273a6407217312bfcf58883878309 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Add missing license filesKai Köhne2022-10-192-0/+82
| | | | | | | Both Apache-2.0 and MIT are referenced in qt_attribution.json file Change-Id: I5c071b33ebfafd94a9dd6b8be23c2062f4de1257 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Port from qAsConst() to std::as_const()Marc Mutz2022-10-071-2/+2
| | | | | | | | | | | | | | | | | We've been requiring C++17 since Qt 6.0, and our qAsConst use finally starts to bother us (QTBUG-99313), so time to port away from it now. Since qAsConst has exactly the same semantics as std::as_const (down to rvalue treatment, constexpr'ness and noexcept'ness), there's really nothing more to it than a global search-and-replace. While this project maintains compatibility with Qt 5.15, it requires C++17 at the same time, so we don't need to add version checks. Task-number: QTBUG-99313 Change-Id: I7ba355e636ba1bfac94b787240a9bef2f3bb4e0b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Raise minimum Qt version to the lowest with general supportRobert Loehning2022-09-141-1/+1
| | | | | Change-Id: Ied374a95db6efbd77f265342c6dbebbfa0cb3b1f Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Remove outdated version checksRobert Löhning2022-09-121-30/+0
| | | | | Change-Id: I4a76da49b0457afcd97375c121077256db1f65cf Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix litehtml submodule stateEike Ziller2022-09-011-0/+0
| | | | | | | | Amends 47275a01aad3763ad38b13d6079d338880d79075 Change-Id: I858976736ec468cc3c530f7a49cbdbf36bf6cb13 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix qurl encoding/decodingMarcus Tillmanns2022-09-011-2/+2
| | | | | | | | | | | | | | Previously urls with % encoded characters would be broken. For instance "operator%3D.html" would be converted to "operator%253D.html". This patch fixes that issue by correctly choosing ::fromEncoded and QUrl::FullyEncoded. Also got rid of QDir::cleanPath by using QUrl::NormalizePathSegments. Change-Id: I73c5250e037dec81353e6cf7559a7c24c47b54f5 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-08-225-3/+12
| | | | | | | Task-number: QTBUG-105718 Change-Id: I84040c8f1b7ac350bd698851cab12d6e902f7ffa Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Add license headers to cmake filesLucie Gérard2022-07-073-0/+9
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I06e95211a8129abd51140b9aac19be23f8e25937 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Make pageUp/Down scroll by 1 page onlyJarek Kobus2022-06-151-0/+1
| | | | | | Task-number: QTBUG-100837 Change-Id: Icffa7a692dd04e0ad11952b70468fe5310c56eaa Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-1910-219/+44
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: Ia102d4037111c4cdb3e5210de05d1301ae050cca Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Suppress compile warnings from litehtmlEike Ziller2022-05-171-0/+12
| | | | | Change-Id: I5700c0c24ce19da73bbf1e8dd4a1d68173237979 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
* Update litehtml to latest masterChristian Stenger2022-02-231-0/+0
| | | | | | | Fixes building with MinGW. Change-Id: I592a7ab8fe89f14ef4c41abe2ed01e83189e68fe Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix qbs buildChristian Stenger2022-02-171-0/+9
| | | | | | Change-Id: Ifff058813a9b3e06cca2d37154adf2c72417a826 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix parsing of float numbers with different localesEvgeniy A. Dushistov2022-02-153-2/+2
| | | | | | | | | | This MR merge last changes from litehtml, mainly for https://github.com/litehtml/litehtml/commit/bb04a50f93e94de0aa9a0be0b9b6e7435051dbf6 to fix parsing CSS on machines with locales where "." is not decimial delimiter. For example in french locale "," used for decimial delimter. Change-Id: I8d50ed25e9717224078eaf48150c02281eeb2ae5 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix a rather dire warning about usage of not-virtual destructorEvgeniy A. Dushistov2021-11-012-1/+1
| | | | | | | | | | | During compilation I got such warning: > delete called on non-final 'DocumentContainerPrivate' that has > virtual functions This commit fix this issue. The main part of fix in litehtml, so I update to current master. Change-Id: I8d68b58318d1949760ee9eedb8b27875344fa4ad Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Update litehtml submodule to the last versionJarek Kobus2021-10-271-0/+0
| | | | | | | | It should fix the issue when compiling sources with conan. Task-number: QTBUG-97765 Change-Id: I653d476985e453f47c07cbcbc6be633ad3a2ac64 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Make Numpad and Page actions workingJarek Kobus2021-10-201-6/+17
| | | | | | Task-number: QTBUG-97189 Change-Id: Ic121e65f234379d5064d73469386cf74eedfd545 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Document upstream gumbo versionKai Köhne2021-09-091-0/+1
| | | | | Change-Id: Idb6dd5a0b2a9fa171487092975a57715f77718c5 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Force static build of litehtmlEike Ziller2021-08-311-0/+3
| | | | | | | | | We do not support installing a dynamic library for it, so if someone forces BUILD_SHARED_LIBS=ON for some reason, this breaks installation. Task-number: QTCREATORBUG-26192 Change-Id: I4d1b9b457c309575fb6f2eee25746a4efe4b6eec Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Fix installation of .lib file on WindowsEike Ziller2021-08-121-1/+1
| | | | | | | | Fix typo. Task-number: QTCREATORBUG-26039 Change-Id: Icb830e1cd3f4cbd00e0a840b641f4e20350bbdc0 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Fix handling of links that only consist of fragmentEike Ziller2021-07-121-0/+3
| | | | | | | | | | | | | | | | If a link only consists of a fragment (#something), we must not resolve that relative to the "base" url, which is basically the "path" of the current document. It should be resolved wrt the document URL (including the file name), which we currently don't have available in the container implementation. Just return the fragment unchanged and let the link handler take care of that, like it was before ae2afed543ff2499aab6004394d69684b0911d53. Amends ae2afed543ff2499aab6004394d69684b0911d53 Task-number: QTCREATORBUG-25978 Change-Id: Ibca5f653d107c463a82f538c86aaf607821111bb Reviewed-by: Robert Löhning <robert.loehning@qt.io>
* Fix static library suffix on WindowsLi Xinwei2021-05-201-1/+1
| | | | | | | | | When building latest qt (dev branch), I noticed following ninja output: [4390/8592] Linking CXX static library qtbase\lib\qlitehtml6.dll Apparently the library suffix of qlitehtml is wrong. Change-Id: Iee38d5b11a22a1ee855664c0d7c43c6e67bf618e Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix .lib suffix on Windows to contain major version numberEike Ziller2021-05-201-1/+3
| | | | | Change-Id: Ieb9d8e9af7430286077d01b898514b7773536b54 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Add CMake variable for specifying archive install pathEike Ziller2021-05-191-1/+7
| | | | | | | | | Allows to specify the path where .lib files are installed on Windows, or where the static library is installed (when built as static library). Change-Id: I74c6a6968bb6d07e36e1333da9b281de0413253c Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* qbs build: Adapt to "product" deprecationChristian Kandeler2021-05-111-3/+3
| | | | | | | ... in Export items Change-Id: I056e8bcb1509e8a25ddb57c01f834d9813c026c8 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Add missing .gitattributes and .tag filesJani Heikkinen2021-05-112-0/+4
| | | | | | Fixes: QTBUG-93646 Change-Id: I09dab89d1428e2425afc8d0258e3b2d347e14db3 Reviewed-by: Antti Kokko <antti.kokko@qt.io>
* Fix static build on WindowsEike Ziller2021-05-051-1/+5
| | | | | Change-Id: I9c42ef2c1136c10f43d0e34bf0f3cdd6c5fcc92c Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Add option for building qlitehtml staticallyEike Ziller2021-05-041-1/+5
| | | | | | | By setting QLITEHTML_LIBRARY_TYPE to STATIC, instead of the default SHARED. Change-Id: I1a5308314aa3d41802a6f84fbe99c801e050ddf5 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Make it possible to compile qlitehtml without clipboard featureJarek Kobus2021-04-212-4/+11
| | | | | Change-Id: I79187ea2d3afcfff26bf452ffaa2de0dec520f78 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Update license headers againJarek Kobus2021-04-208-7/+37
| | | | | Change-Id: I145e79bfc475dd64abd1d2dc7974788330ea7c8c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Add attribution file for assistantKai Köhne2021-04-202-0/+32
| | | | | | Change-Id: Ic958ae5a9f47143b116365ecd6cde7cc6180e52c Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Update license headersJarek Kobus2021-04-207-7/+28
| | | | | Change-Id: Id833ec8d0fa2a1a0825a10c8c75060a2de43e55a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Generate linkHighlighted() also on leave eventJarek Kobus2021-04-202-3/+9
| | | | | | | | | | When a link lies near the border of the browser window and after hovering over the link we leave the window we are not receiving linkHighlighted() signal with empty url. This patch fixes it. Change-Id: I1be55a044997fcce748bcf18c71b51efd705cffd Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* TestBrowser: Add copy actionEike Ziller2021-04-201-0/+22
| | | | | | | | To menu and a new tool bar (so the enabled/disabled state can easily be seen) Change-Id: Iff7b6c7b2f2654d0657f9e0415c0a77e1eefe432 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* TestBrowser: Add Browse buttonEike Ziller2021-04-201-2/+17
| | | | | | | For opening local files. Change-Id: I556954542894a4f399b46664f60dc94e21cabb64 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* TestBrowser: Add status widgetEike Ziller2021-04-201-6/+18
| | | | | | | That shows the link target if the mouse hovers over a link Change-Id: Icd9705ee0022bbff0736d817ebfc45200b74a588 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* Add linkHighlighted() and copyAvailable() signalsJarek Kobus2021-04-205-10/+71
| | | | | | | To be used in Assistant integration. Change-Id: I2d91b141641e225c1a27e6eaaa0f009a54900b0a Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Fix cmake to work against Qt6Jarek Kobus2021-04-082-4/+3
| | | | | Change-Id: Ic609f49ee8118daa1d88206f513a9bb875617f45 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Make Home / End keys workingJarek Kobus2021-04-062-0/+16
| | | | | | Task-number: QTCREATORBUG-25548 Change-Id: I21e0edf79cf8fc3d21bae2868ad0eaad13fdc568 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Add a minimal test browserEike Ziller2021-03-163-0/+127
| | | | | Change-Id: Ie86cf1cb448ef570611e40deed813769a66052e8 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>