summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Fix the background color issue in cookiebrowserAnu Aliyas2024-01-072-2/+16
| | | | | | | | | | | | | | In cookiebrowser example, all new cookie widgets are added at position 0. Background color of the newly added widget is set based on the color of last inserted cookie widget. Fixes: QTBUG-120446 Pick-to: 6.5 Change-Id: I76fe3ae83b31489365396a2ebcd31d840b2fa857 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 285dfce3c0f8e61228784ef557844c66d44feb1f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 9eb97b4b3bfefb9c475e3aa5056a8641aa4b102d)
* PDF Quick examples: select text in search field when pressing Ctrl-FShawn Rutledge2024-01-072-2/+8
| | | | | | | | | | | | | | | It's better for usability in case the user is doing repeated searches: press control-F and start typing to search for different text, rather than needing to do something else to select or delete the existing text in the search field. Fixes: QTBUG-120447 Pick-to: 6.5 6.2 Change-Id: I8d5a519a631c406dff91198b23a022856609fa4c Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 140edbd6c887c0ae26a054d8c859041c68f06fd7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 274fb4698fa06cf513ce48b71a4f59d3e1608a3c)
* Add icons to recipebrowser exampleMatthias Rauter2023-12-2211-13/+72
| | | | | | | | | | | | Also fixed the qrc file. Fixes: QTBUG-119738 Change-Id: I97e981260fff90e6f9ef3a1ea661d9cf47e6ee45 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 12c5da65fd5195279878add7dd1523672f1f152e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 470621789a73825769d0f83b7c9905e73b99c35a)
* Redesign spellchecker exampleKarolina Sofia Bang2023-12-217-108/+112
| | | | | | | | | Fixes: QTBUG-119732 Change-Id: Ibfdc2989cea704a05fa5f6ed038c2b08498285e7 Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 42193e1ee934dabbe5f653c016756f08e3d99c81) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 0fcc4e584662742cf6a797ca0c9b7d475aa75eaf)
* Redesign printMe exampleKarolina Sofia Bang2023-12-186-78/+54
| | | | | | | | | Fixes: QTBUG-119732 Change-Id: Ia034b8a1566cd2858ccfe1313d73b503b10d752b Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 996a87802f6c65c5dd2ad294978be67323bb30d5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 30f2d5ccfcdd00af27364520cbe9b28d3db6c7a9)
* Modify copyright format in qt_attribution.jsonLucie Gérard2023-12-143-27/+27
| | | | | | | | | | | Multiline copyright entries are entered via string array. Task-number: QTBUG-111873 Pick-to: 6.5 Change-Id: I1b90e5333505227db66bc25d3baba8311afda37d Reviewed-by: Topi Reiniö <topi.reinio@qt.io> (cherry picked from commit 80a24bb47ce7a18afeb23a23d4845ada8e5d873d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Move PDF examples to UI Components categoryKai Köhne2023-09-272-2/+2
| | | | | | | | Pick-to: 6.6.0 6.5 Change-Id: Id3279026fcc791a9bd5e3e51a7ba7dd3c4a6930c Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> (cherry picked from commit d002a907b5c1016c166d1df0d027b4f391a7273b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Modify the file system access request window titleAnu Aliyas2023-09-141-1/+1
| | | | | | | | | - Corrected the typo in the file system access window title. Change-Id: I9667726527e90477f6602e9ac8acf1a68742abe7 Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit df05221eaa33496aeb013ece3f4ce6a78aeb8c95) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove recipebrowser and simplebrowser from Application ExamplesKimmo Leppälä2023-09-122-2/+0
| | | | | | | | | | | There's already nanobrowser in Application Examples so this removes the other webengine examples from that category. Change-Id: I1f6dc7be7cb0ad4b0ac8134eb438ac0a0db7a5d3 Reviewed-by: Tuukka Turunen <tuukka.turunen@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io> (cherry picked from commit 8b2d2cd8387808dc589eda9bfbc119cc84ca4633) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* QPdfPageSelector: port from is-a to has-a QSpinBoxMarc Mutz2023-08-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Yes, the class needs to inherit from QSpinBox in order to override the protected virtuals, but that doesn't mean a QPdfPageSelector should model is-a QSpinBox. E.g. the range of the QPdfPageSelector is taken from the QPdfDocument, and no good can come from a user changing it through the use of QSpinBox API, esp. if one thinks about the class being displayed as a native widget in QtDesigner. In a similar vein, the inheritance from QSpinBox leaves users wondering (and the docs didn't do anything to enlighten them) what properties are pertinent to the task at hand. setValue() to set the page index is ... meh, but still somewhat discoverable. But that text() is only QPdfDocument::pageLabel() if no affixes are set takes quite some digging. Part of this could be fixed by providing domain-specific properties like currentPage for value, but that would just increase the confusion, because those two properties would must needs exist on the same object. Instead, fix by moving the old QPdfPageSelector as QPdfPageSelectorSpinBox into qpdfpageselector_p.h, removing its pimpl and having QPdfPageSelector inherit QWidget instead, aggregating a QPdfPageSelectorSpinBox. This involves a few more objects (the widget, the layout), but gives QPdfPageSelector full control over its interface. Add a few salient properties (more can be added if needed, by copying them from QSpinBox or QAbstractSpinBox). Note how well the new API rhymes with QPdfPageNavigator in the connect() in pdfviewer example's MainWindow. Since we still store everything in QPdfPageSelectorSpinBox, but don't pimpl it anymore, QPdfPageSelectorPrivate can lose the q_ptr now, and merely contains the pointer to its QPdfPageSelectorSpinBox. This could be optimized further, by making QPdfPageSelectorSpinBox and QPdfPageSelectorPrivate the same class, but that's neither BC- nor SC-relevant anymore, and can be done later (or never, seeing as this widget is unlikely to be used more than a few times per application). Found in API-review. As a drive-by, port to the std-compatible subset of the QPointer API. Change-Id: I0d82d098d38d5f2fcf7f1c8c9aed6e792a8deb2d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 8b20e0636a89dc3e6b06d174286ee16aa427887a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add initial internal version pageMichal Klocek2023-08-142-2/+2
| | | | | | | | | | | | | | | | | | We kept urls in examples to point to company website. However this site is heavy to load and moreover it changes overtime leaving example screenshots obsolete. Introduce internal qt version web ui page which will be default page for examples and which displays basic information and can work offline. For start show version info and command line options for chrome://qt Change-Id: I0271ce6e7b152efe4942a6240b0c74ba382d5fcc Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit a748cb9183143b76cad1e940220dcabf25475493) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add NSCameraUsageDescription and NSMicrophoneUsageDescription to plistsMichael Brüning2023-08-144-1/+23
| | | | | | | | | | | | | | | | Quick Nano Browser and Simple Browser need this to be able to use the camera and microphone on macOS. Also document the need for signing the applications in the examples documentation. Task-number: QTBUG-114939 Change-Id: I7a260a7ec62138fec8f7b4d6c1f2009eee9004d6 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Anu Aliyas <anu.aliyas@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit a63e5b1f0e4b65c5ce59e705129ab368677a94a8) Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Doc: Update example category namesKai Köhne2023-08-1016-9/+16
| | | | | | | | | | | | | | | | | WebEngine examples are generally added to the new 'Web Technologies' category - only Nano Browser remains also in the 'Application Examples' category. The 2 Qt PDF examples are placed in the 'Graphics & Multimedia' category. This is not ideal, but from the existing categories the arguably best matching one. Task-number: QTBUG-115174 Change-Id: I3824272f62a4940f91041c8694fd2a06929863ed Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io> (cherry picked from commit 74aaaa25a1e21a15effc701edd23513eab9e4bdc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Rename QPdfView::currentSearchResult() -> currentSearchResultIndex()Shawn Rutledge2023-08-061-1/+1
| | | | | | | | | | | | | I don't think it was very confusing, but just in case we could want a currentSearchResult() returning the actual result object at some point. It was a suggestion from header review. Amends 288e9be6ba2be40761333036f3397298df5e1018 Change-Id: Ie3eb500e3a79b80b8abafbe19c48b57c7e9d71be Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 84a5d90fc43ead2ce2aa3bdaac2ca88241700d5d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Do no load default style sheets in recipe browserMichal Klocek2023-07-271-2/+1
| | | | | | | | | | | If no settings loaded, start recipe browser example with no style sheets applied. Fixes: QTBUG-114471 Change-Id: Ibdcf0e5171dfa76925e9af95754f0583aedec9bd Reviewed-by: Michael Brüning <michael.bruning@qt.io> (cherry picked from commit c1c084157c90cbc21950fae7b3cbcea068c4e9b4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix geolocation permissions to use new Qt Permissions APIMichael Brüning2023-07-266-2/+138
| | | | | | | | | | | | | | | | QtPositioningHelper now uses the Qt Permissions API. Also fixup the examples Simple Browser, Quick Nano Browser and Maps to use the right key on macOS and sign the application as part of the build process Moves the Geopermission auto tests to manual tests for webenginequick and webenginewidgets on macOS. Fixes: QTBUG-114939 Change-Id: Id6771889f20c866d2fcdbb477dbbb7da30367043 Reviewed-by: Anu Aliyas <anu.aliyas@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io> (cherry picked from commit 3106a9ab7897cb3de9c640a7699d06e3f02a295d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Set example category on Widgets examplesAllan Sandfeld Jensen2023-06-2010-1/+11
| | | | | | | | Change-Id: I795da5e37bd084e5c101aaed14fda5a9b3be4b92 Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io> Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io> (cherry picked from commit 233b35fb92c050da15e792a3d1c8879dba893635) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add Quick Nano Browser to Application ExamplesKimmo Leppälä2023-06-191-0/+1
| | | | | | | Change-Id: Ia6f1950425d078fbcf4b5e212e5cc983544f3397 Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit 74b958accfa49eeef9c70a6e6055acfaced6679f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add Windows 10 compatible manifest to examplesMartin Negyokru2023-06-196-0/+58
| | | | | | | | | | | | | This manifest is required for User-Agent to report the correct Windows versions. Document Windows App Manifest in platform-notes and mention it in the httpUserAgent documentation. Fixes: QTBUG-63021 Change-Id: Ie3896c50a0a912742e8d1a0dc20f3305b343d3f4 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit a565ffcc172da74ae6ca0f847a0b162ffd68e918) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix quicknanobrowser tab closingMartin Negyokru2023-06-021-1/+0
| | | | | | | | | | | Calling TabBar.removeItem(Item item) with an integer results in an exception in the qml engine making the tabs not closable. 'removeItem' is called twice on the same item/index. Remove the wrong call. Pick-to: 6.5 Change-Id: Ie46794e219e82b956b615fa5cbb5dfe745598901 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* QuickNanoBrowser: Make FindBar visible in dark modePeter Varga2023-05-171-0/+14
| | | | | | | Pick-to: 6.5 Change-Id: Iec4f3db0a6dad1eb040e44b09bc0b0000714ecdb Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Anu Aliyas <anu.aliyas@qt.io>
* QuickNanoBrowser: Switch to Fusion stylePeter Varga2023-05-173-3/+3
| | | | | | | | | | | | | | | Since Qt 6, the default Qt Quick Controls style is native style on Windows and macOS. Since Qt 6.5, there is a warning to not to customize native style: "QML QQuickItem: The current style does not support customization of this control ..." Use non-native Fusion style instead, which appearance still resembles the native style and is customizable. Pick-to: 6.5 Change-Id: Ifadd74a152b739461f2ad7ef1cb9763a2974b492 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* 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>
* Merge recipe browser, stylesheet browser and markdown editor examplesYigit Akcay2023-04-0578-3734/+872
| | | | | | | | | | 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>
* Add Windows 11 related note for Geolocation settingsYigit Akcay2023-04-031-0/+6
| | | | | | | | | | | 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-3110-286/+1
| | | | | | | | | 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-301-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>
* 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>
* Remove webui exampleAllan Sandfeld Jensen2023-03-2411-450/+1
| | | | | | | | | | | | 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-229-222/+0
| | | | | | | | | | | | 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-2243-1887/+0
| | | | | | | | | | | | | 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-228-165/+0
| | | | | | | | 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-227-129/+0
| | | | | | | | | 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>
* 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>
* 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>
* Doc: Fix example codeAndreas Eliasson2023-02-271-1/+1
| | | | | | | | | | | | Use the .parse() method from the marked.js third party library. https://marked.js.org/ Fixes: QTWEBSITE-1083 Pick-to: 6.5 6.4 6.2 Change-Id: I59bcf14ce7169570a234169c6b48f720271c1e72 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Support DecorationRole for icons in QPdfDocument::pageModelShawn Rutledge2023-02-163-1/+47
| | | | | | | | ...and begin rendering thumbnails in the widget-based example by adding a QListView in IconMode. Change-Id: Ia0f446e48ce868e27cd7d64a3712a7db1b1e618b Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* Add QPdfPageSelectorShawn Rutledge2023-02-162-8/+12
| | | | | | | | | | | | | | | | | | This is a QSpinBox subclass that shows PDF page "labels" rather than a 1-based or 0-based page index. If a book starts with Roman numerals in the preface, and then page 1 is the first page of Chapter 1, the spinbox should be in sync with the page numbers as printed on the pages, and with the labels that will eventually be shown under the thumbnails on the Pages sidebar tab. On the other hand, the user probably needs to see the 1-based page index somewhere, at least to be able to make sense of the print dialog, because there the range of pages to print will be 1-based. So we put the page index into the title bar: title, page label, index, count. Task-number: QTBUG-102271 Change-Id: Ic461094ba4caae3067409f7f436bd4e7504a4bdb Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* Support LTR and RTL text directions in input fieldsSzabolcs David2023-02-151-1/+3
| | | | | | | | | | Implement WebActions to temporarily change text direction directly from context menu - like Chrome does. They only work for the selected input field. Omit the "default" option since it is always grayed out in Chrome. Task-number: QTWB-67 Change-Id: I4bacbd82c6bd7261ac465eec9da3776613f98074 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix clang compiler warningsPeter Varga2023-02-141-5/+3
| | | | | Change-Id: I6ebd403a3affae8bfbc5afee9d528664fb08122c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QuickNanoBrowser: Add feature permission request handlingPeter Varga2023-02-022-6/+98
| | | | | | | Pick-to: 6.5 Change-Id: Ia0d8bffa419174234e78e1359871e0dfa36b1636 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QuickNanoBrowser: Remove usage of Quota Permission Request APIPeter Varga2023-02-021-7/+0
| | | | | | | | | This amends commit 8fd7140082e3a752ca80882a29128ffc12d12fa4 Pick-to: 6.5 Task-number: QTBUG-56354 Change-Id: I82803cf9bfab1ed5a07494ecce86722b634c204c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* QuickNanoBrowser: Remove deprecated Qt.labs.settingsPeter Varga2023-02-021-1/+1
| | | | | | | | | | | | Fixes deprecation warning: qrc:/BrowserWindow.qml:35:5: QML Settings: The Settings type from Qt.labs.settings is deprecated and will be removed in a future release. Please use the one from QtCore instead. Pick-to: 6.4 6.5 Change-Id: Ie027b243a312f148f72adfd6e68ce0f8d6e6d62c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix navigation error for incomplete URLs in webenginequick examplesMartin Negyokru2023-02-0112-3/+73
| | | | | | | | | Use QUrl::fromUserInput in lifecycle and webengineaction examples. Task-number: QTBUG-96010 Pick-to: 6.5 Change-Id: I69cbcb1db31b0766d05f751b4aede11092d078d5 Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Suppress the QTP0001 policy warningAmir Masoud Abdol2023-01-271-0/+1
| | | | | | Pick-to: 6.5 Change-Id: If10e6c259d73dd1e09c4ddac0b297b856fb13502 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Disable WebEngineContext dump by defaultPeter Varga2023-01-192-0/+4
| | | | | | | | | | | | | Keep it enabled for simplebrowser and quicknanobrowser examples. Also add documentation how to enable it. [ChangeLog][WebEngineCore] Disabled WebEngineContext dump by default. Fixes: QTBUG-109040 Pick-to: 6.5 Change-Id: I4bd3c0e9eb532771f9b455863324e9dacaae884a Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>