summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Clear PDF search results on document page model changeMikolaj Boc2023-04-173-0/+15
| | | | | | | | | | | | Not clearing the search results leads to crashes when the incoming page model is larger than the outgoing model, due to internal state being still in sync with the old document, but the page count of the new document being used. Fixes: QTBUG-111067 Pick-to: 6.5 Change-Id: Ic81744ebe0cb7d1a152453721abd7d1b5c5fa2b9 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add check for Nodejs binary versionMartin Negyokru2023-04-172-0/+12
| | | | | | | | | | Webengine fails to build with 32bit Nodejs. It crashes on devtools-frontend/src/scripts/build/compress_files.js. Add configure time check for node binary. Task-number: QTBUG-111852 Change-Id: I80844e36d5ae4621e2dae6fe61de883580b56a57 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Resolve duplicate symbol errorAmir Masoud Abdol2023-04-141-1/+1
| | | | | | | | | | | When doing unity build, `CharacterHitTolerance` collides with similarly named variable in `qpdfdocument.cpp`. Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: If7ac4ec095c88bff38f3b62b4caac82f0bfd8368 Reviewed-by: Orkun Tokdemir <orkun.tokdemir@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-04-131-4/+4
| | | | | Change-Id: I7bfb561e74dbafb9526970b2d24f3bb0384310d4 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Doc: Use the \examplecategory macro to tag examplesTopi Reinio2023-04-131-1/+1
| | | | | | | | | | | | | | | | The '\meta category' command was used for tagging examples with a specific category, used in Qt Creators Welcome mode. As we want to also generate lists of examples belonging to a category elsewhere in the documentation, replace the command with a macro that expands to the original \meta command and also adds the example to a group using the \ingroup command. This way, the category names can be used as arguments to the \generatelist or \annotatedlist commands. Pick-to: 6.5 Task-number: QTBUG-112731 Change-Id: If9519fd8994c64cf57dc4c9a9387d7be80493d80 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-04-121-4/+4
| | | | | Change-Id: I9a5d2f4735e766bc896731d955853bc2a440ea3f Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Rework painting integration and support Metal RHI over ANGLEAllan Sandfeld Jensen2023-04-1218-115/+732
| | | | | | | | | | | | | Move graphics details into compositor, and add support for a native buffer mode uses ANGLE on the Chromium side. The initially support is for Metal. Pick-to: 6.5 Fixes: QTBUG-112282 Task-number: QTBUG-112280 Change-Id: I066ba1d3e72508e047d259ae5797659d45335fb2 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-04-111-4/+4
| | | | | Change-Id: I423d33120816d144c74e3fe02374149e192cd78a Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Better handling of interrupted PDF printingSzabolcs David2023-04-054-1/+27
| | | | | | | | | | | | | | | | | | | | | - Document the fact Stop WebAction can interrupt the in-progress PDF generation. - Update PrintViewManagerQt::PrintPreviewDone(): Normally IsPrintRenderFrameConnected() implies IsRenderFrameLive(), but we have to check both to avoid crash when render process exits. (Like Chrome does.) - Update PrintViewManagerQt::RequestPrintPreview(): Handle that case when print preview params were sent between processes at the beginning, but it was interrupted before RequestPrintPreview() could start PDF generation. - Add a simple auto test to catch crashes Pick-to: 6.5 Task-number: QTBUG-108154 Change-Id: I8a4f9cc97ddcf9a165d66a5981d93a023858fbc1 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Merge recipe browser, stylesheet browser and markdown editor examplesYigit Akcay2023-04-0579-3735/+873
| | | | | | | | | | This patch merges the qtwebengine examples recipe browser, stylesheet browser and markdown editor into one single example. Pick-to: 6.5 Task-number: QTBUG-108751 Change-Id: I338707d7d3275b03bf2a2d7b65064ac91e562d7f Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Simple browser example: Fix up the codeFriedemann Kleint2023-04-053-34/+6
| | | | | | | | | | | | | - Remove duplicated unused helper questionForFeature() - Replace lambdas by slots where possible - Fix clang warning about using multiple arguments to QString::arg() - Remove dead code in WebView::contextMenuEvent() which checks on inspectElement == actions.cend(), but is within an "if" checking the same condition. Pick-to: 6.5 Change-Id: Ie85a3811f4f5a8c3fa9550d4eb2ca5bf79e39084 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Adapt to painting cleanupAllan Sandfeld Jensen2023-04-047-46/+31
| | | | | | | | | | Pass through alphaChannel requirement correctly, instead of having a nonfunctional hasAlphaChannel(). Pick-to: 6.5 Change-Id: I99adb17aa38fd91ea8fd93b86a352bc476690837 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fix building on Windows and macOS with chromium EGLAllan Sandfeld Jensen2023-04-044-57/+34
| | | | | | Pick-to: 6.5 Change-Id: I6c7b37d7c53ff9ed872f5f95660c6cf7520e6bda Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Update ChromiumAllan Sandfeld Jensen2023-04-041-0/+0
| | | | | | | | | Pulls in graphics integration cleanup and must be staged with patches that adapt to that. Pick-to: 6.5 Change-Id: Icb6f485e201fd4edd7381965a5b007d866f8e5f6 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fix gn<->ninja dependencies for qtpdfMichal Klocek2023-04-031-3/+3
| | | | | | | | | | | | | | We try to build qtpdf after qtwebengine is done. However "ninja docs" now depends on gn run and should not trigger module compilation. Therefore sync on NinjaReady target so GnReady for QtPdf can run just after gn binary is compiled and does not trigger whole qtwebenigne module build. Task-number: QTBUG-88482 Pick-to: 6.5 Change-Id: Iaf7f8ec631414c636915d53532bc85e84c5534a5 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add Windows 11 related note for Geolocation settingsYigit Akcay2023-04-032-0/+12
| | | | | | | | | | | There are 3 OS settings under Windows 11 that need to be enabled for the HTML5 Geolocation in QtWebEngine to work properly. This isn't very straightforward to a user, therefore this patch adds a note to the documentation. Pick-to: 6.5 Change-Id: Id36a4726a182178c5a15fce039e464fd6bb7517e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Replace WebEngineAction example with a snippetMichael Brüning2023-03-3114-105/+171
| | | | | | | | | Also moves the example to the manual tests directory. Task-number: QTBUG-108751 Change-Id: Ie3fa492cfcaf61ee26ed65fa22954bb6a6532d6e Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit 23d1131577e1780de0552211a84357bcb1f63de5)
* doc: Provide a screenshot of the PDF Viewer widget example; rename pageShawn Rutledge2023-03-302-4/+2
| | | | | | | | | | | | | | | | Let's be clear in the title that this is a widget-based example, as opposed to the Qt Quick example in the docs. The screenshot is from macOS 13.2.1. The 6.6 example has more features, so this screenshot looks a bit incomplete compared to that. Pick-to: 6.5 Task-number: QTBUG-81560 Change-Id: I28b50d608756f10967f1bf5f7ac72ec9a83d9417 Reviewed-by: Matthias Rauter <matthias.rauter@qt.io> Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* Simple browser example: Add helper function to remove key backspaceFriedemann Kleint2023-03-301-15/+16
| | | | | | | | It otherwise looks like a bit like an oversight or bug. Pick-to: 6.5 Change-Id: If11fe034fa91022eb70c99b8a916fb35ac86f75d Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Simple browser example: Fix clazy warningsFriedemann Kleint2023-03-302-17/+13
| | | | | | | | | - else after return - Use multiarg version of QString::arg(QString) Pick-to: 6.5 Change-Id: Iceff3ee8877b866b5b9187cd85da54864ab17834 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Drop perl dependency for third party opusMichal Klocek2023-03-302-0/+15
| | | | | | | | | | | Opus needs perl to do some optimizations, in case there is no perl print the warning and drop the perl requirement. Fixes: QTBUG-111958 Pick-to: 6.5 Change-Id: I63a66e71fdaeae61d5c9dbcfe41f03bfb717bb75 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Rolf Eike Beer <eb@emlix.com>
* Update ChromiumMichal Klocek2023-03-301-0/+0
| | | | | | | | | | | | | Pulls in following patches: * e41707d576a Add support for custom gn binary to license generator * 8b8de6420db FIXUP: Jumbo build * 17d1d44b890 [Backport] Security bug 1401571 * 9de0d8a90d9 Fixes for building with GCC-13 * 4d558a69453 Opus needs perl for optimatizations Change-Id: I939daf2c2dcbcd7890bc24de591650f1a4eedd7b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Require gn for generating docsMichal Klocek2023-03-304-10/+58
| | | | | | | | | | | | | Make sure gn is build before doc target, otherwise parallel top level build might not succeed. As configure runs the gn binary is not compiled so use scripting mode to execute gn call during build time. Pick-to: 6.5 Task-number: QTBUG-108751 Change-Id: I7e851de90e2a3ec52f5259d51f677b23d8245bcb Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Minor. Small clean up of qmake leftoversMichal Klocek2023-03-284-306/+0
| | | | | | Pick-to: 6.5 Change-Id: I0ef7f97b3d76c43e815daeb7d6782215c08e4f7d Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* doc: Add the QtPDF Licenses and Attributions sectionShawn Rutledge2023-03-285-0/+53
| | | | | | | Fixes: QTBUG-88482 Pick-to: 6.5 Change-Id: If58a8443afb38f372ca3dc7372472db888586dba Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Add gn target to code attributions generatorMichal Klocek2023-03-282-13/+37
| | | | | | | | | Use gn_target for code attributions generation. Task-number: QTBUG-88482 Pick-to: 6.5 Change-Id: I4e5d063dec2347c10eb715a467bdd376e39e60af Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Fix name colision for cmake targetMichal Klocek2023-03-283-5/+5
| | | | | | | | | | After c89fcec the build with manual tests fails as executables have same targets. Fix too compilation issue. Change-Id: I9fd2831b4f0d766e138ae2289e91aa43280568bd Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-03-281-4/+4
| | | | | Change-Id: Iaea8e2da127e0d5549fc9ec0999dc6b66a35e4cc Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Get rid of our sync point managerAllan Sandfeld Jensen2023-03-284-25/+0
| | | | | | | | | We haven't needed our own since we got rid of the graphics node integration. Pick-to: 6.5 Change-Id: I20b0fdb440c07e451d0e0152e8012ddf59e159cf Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Simple browser example: Use member initializationFriedemann Kleint2023-03-289-25/+16
| | | | | | | | As a drive-by, make constructors explicit. Pick-to: 6.5 Change-Id: I5c8e3d8049504afa4aa5a0d7c1a85bb59eb3cd38 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Simple browser example: Use modern string literalsFriedemann Kleint2023-03-286-19/+31
| | | | | | Pick-to: 6.5 Change-Id: I14ed5efed1bf228239f95a8a4addce5d19a9f220 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Update initializationAllan Sandfeld Jensen2023-03-281-1/+5
| | | | | | | | Add missing calls to match RunBrowser() logic. Pick-to: 6.5 Change-Id: Ia4a14acb279cc43cc8ab4930f1f5432b03a8cbed Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Use docs target for chromium code attributionsMichal Klocek2023-03-241-1/+1
| | | | | | | | | | The target docs_WebEngieCore, which in the end calls generate_docs_WebEngineCore, is not a dependency for any other target in generated ninja file. Pick-to: 6.5 Change-Id: Ic2f1c93fed8fbb1a44e2f99365b15b7ec3e636f2 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Minor. Fix namespace issues of inputmethods manul testMichal Klocek2023-03-253-1/+8
| | | | | | Pick-to: 6.5 Change-Id: Ic0f318aa63cab901b979d76a34e329b2ab8359cf Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Add quotes from removed example to documentationAllan Sandfeld Jensen2023-03-241-0/+14
| | | | | | | | | Task-number: QTBUG-108751 Change-Id: I5560c2104e28cb5ca753f5db3579feabf4723980 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit fb2b93818c7ecd5c025b999b2521801da9f4fbc9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove webui exampleAllan Sandfeld Jensen2023-03-2412-453/+17
| | | | | | | | | | | | Doesn't demonstrate anything complicated, the code isn't even worth quoting as snippets. We could consider introducing a help browser to replace it with more functionality. Task-number: QTBUG-108751 Change-Id: I3b796388796a78d017836a10bee18032b2cd4905 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit e4051de7db7b7f0905770280f9a06e133d453cf7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Move custom touch handles example to manual testsMichal Klocek2023-03-2212-92/+58
| | | | | | | | | | | | Move and add missing parts as snippet. Task-number: QTBUG-108751 Change-Id: I25849941700337626ca46e399fdb52264bc4659a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Yigit Akcay <yigit.akcay@qt.io> (cherry picked from commit 55f9fc348278b2aa8985ec9c1e7e092f88f68f83) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Move custom dialogs example to manual testsMichal Klocek2023-03-2246-338/+36
| | | | | | | | | | | | | This example shows how to use dialogs, however documentation already provides snippets for that added in 3cbe59e29a. The only missing one was tooltip, therefore add missing snippet and move example to manual tests. Task-number: QTBUG-108751 Change-Id: I84eda805455fb0276046ed1089389d605a8af672 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 6bf30525ee49d270dae6a6440bc607513f21237c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Move quick minimal example to manual testsMichal Klocek2023-03-2216-117/+86
| | | | | | | | Task-number: QTBUG-108751 Change-Id: I0998c46f051908855e0406e5fc7c0a422dc3eef0 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit ed76eef004dbac15f4740d33d06d2b271bf770d4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Move widgets minimal example to manual testsMichal Klocek2023-03-2213-98/+38
| | | | | | | | | Task-number: QTBUG-108751 Change-Id: I6e237b04d1f6a19f64516cd45aabe4d28099abd5 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 34ebe8be93ab10766d034e5a3943a12c8de3a58e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Increase timeout in proxy pac testMichal Klocek2023-03-201-1/+1
| | | | | | | | | | According to ci this test would succeed in 13000ms on qemu. Fixes: QTBUG-111939 Change-Id: I21911920961a885eee38dcd3261e46b497a1c251 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit f576588c85f4f635d38f56a1db087a50c19add42) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QtPdf: Support more schemas when loading documents with qmlMichal Klocek2023-03-201-4/+2
| | | | | | | | | | This is follow up after efbb12954cf6e58, use same handling as for reloading on password change. Pick-to: 6.5 Fixes: QTBUG-87275 Change-Id: I1046f57f61346a2cbc03f50ca453209a855ea561 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Update dependencies on 'dev' in qt/qtwebengineQt Submodule Update Bot2023-03-201-4/+4
| | | | | Change-Id: I95a330b9d6a972e403029f9558ef93a030e7ec7d Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Doc: Use the new \attribution command in licensing documentationTopi Reinio2023-03-182-2/+4
| | | | | | | | | | | Since Qt 6.5, marking a \page as an attribution page is done with a separate command, \attribution. Update the Chromium licensing template and the Qt WebEngine licensing page to use the new command. Pick-to: 6.5 6.5.0 Fixes: QTBUG-112007 Change-Id: I1eac67bee72c078782d9334a604002011e1c3c86 Reviewed-by: Luca Di Sera <luca.disera@qt.io>
* Add search feature to PDF widget exampleShawn Rutledge2023-03-1710-0/+203
| | | | | | | | | Task-number: QTBUG-16211 Task-number: QTBUG-77507 Fixes: QTBUG-92973 Change-Id: I650bed9392e5e098e46368c60fb7c5dbebde666f Reviewed-by: <irfan.omair@qt.io> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* Teach QPdfView to render search result highlightsShawn Rutledge2023-03-173-1/+100
| | | | | | | | | | | | | | | | | | The bounding boxes of all visible search results are filled with a translucent color on top of the page image, because we don't know whether the image is opaque or not. currentSearchResult is further highlighted by drawing bounding box borders. The colors are the same as PdfStyle.pageSearchResultsColor and PdfStyle.currentSearchResultStrokeColor, respectively. Perhaps they could be configurable somehow in the future, but it's not clear yet what API that ought to have, since we do not have suitable QPalette roles (except QPalette::Highlight, which is not translucent). Task-number: QTBUG-77507 Task-number: QTBUG-92973 Change-Id: I3df634229811e72d2d438a39997e0b4887d6bf11 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Make QPdfLinkModel public and use in QPdfViewShawn Rutledge2023-03-178-102/+193
| | | | | | | | | Now you can click links on pages in PDF documents in QPdfView. Task-number: QTBUG-77511 Fixes: QTBUG-102760 Change-Id: I348dcfd906be088aa3fcbe53aec4628b521cc2f3 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* QtPDF multipage example: open the search results tab during searchShawn Rutledge2023-03-161-1/+1
| | | | | | | | | | It's unfortunate that we need to use a numeric index; but it will be ok as long as we don't rearrange tabs any more. Pick-to: 6.2 6.5 Fixes: QTBUG-106359 Change-Id: I036c45a6de7690e9ed122c74448a89da343f10d5 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Replace Q_OS_WIN guards with BUILDFLAG(IS_WIN)Peter Varga2023-03-161-7/+10
| | | | | | | | | | | vulkan_implementation_qt.cpp doesn't include any Qt header and Q_OS_WIN remains undefined on Windows. Also include vulkan/vulkan.h for the WIN32 vulkan macros. Pick-to: 6.5 Change-Id: I66b9f134194526c055309bb72bd3a452e2b9a2b2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix syncqt include warningPeter Varga2023-03-161-2/+2
| | | | | | | | | WARNING: qwebengineloadinginfo.h includes QHash when it should include QtCore/QHash Change-Id: I244a9390421ade2344660b66a54d4bf99915f29a Reviewed-by: Yigit Akcay <yigit.akcay@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>