summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/stylesheetbrowser
Commit message (Collapse)AuthorAgeFilesLines
* Minor. Cleanup qt6_add_resources usageMichal Klocek2021-10-281-1/+1
| | | | | | | | | We should not use qt6 prefixed functions in examples. Change-Id: Ibf2618ef4f64b560decb219527d619aad680f216 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 32924ec6b27d3da0ffbeec93e1b8c19ff9c49387) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix broken attributions to the Public DomainLuca Di Sera2021-09-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | The attributions generated trough `qtattributionscanner` support generating links to SPDX licenses. Four such attributions used a `LicenseId` of `DocumentRef-PublicDomain`, which is a non-existent license. Indeed, the SPDX project seems to shy away from making a single license representing all Public Domain attributions, preferring to make a database entry for each Public Domain attribution. To avoid the broken link, such attributions were modified to use a dejacode LicenseId, which has a catch-all Public Domain entry, as suggested by Kai Köhne. Task-number: QTBUG-96127 Change-Id: I88e0048c08d6099521e44e74ad7f0e8b3d77b907 Reviewed-by: Kai Koehne <kai.koehne@qt.io> (cherry picked from commit 7ba5a86c6e84b6ecb1ba809050c74d8b0afcb20f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix some compiler warningsPeter Varga2021-06-101-1/+0
| | | | | | | | | | | | | | - Remove deprecated Qt::AA_EnableHighDpiScaling and Qt::AA_UseHighDpiPixmaps from examples. High-DPI scaling is always enabled. - Reorder initialization of members of QWebEngineDownloadRequestPrivate. Also remove m_ prefix from public members' name. - Remove unused parameters from methods of DummyDelegate. - Add missing overrides in auto tests. Change-Id: I18d6973b8bee574b37b73fbaaa8d57002ac8ba2d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 740b8c94f27930a33298c81c2284d1f0a9e2f11b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Use fixed qt_add_resource BASE argumentPeter Varga2021-05-281-3/+2
| | | | | | Task-number: QTBUG-86726 Change-Id: I33ec2a73254d9b44de83f4f5491f372b4bb9959b Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Bump the minimum required cmake version to 3.19Michal Klocek2021-05-221-1/+1
| | | | | | | | | | | QtWebEngine requires support of TARGET_PROPERTY for genex in gn template generation to dump all compilation flags. This is supported since version 3.19, set examples to 3.16 as rest of the qt. Task-number: QTBUG-91760 Change-Id: Ifa5903c8c6efcb160db05baf1e18c865b48bcf39 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Add examples to the cmake buildMichal Klocek2021-05-221-0/+55
| | | | | | | | | | | | | Add only quick and widget examples to the build for now. Update examples qmake files so the ci can also build qmake examples after the cmake bulid. Note this patch breakes qmake builds. Task-number: QTBUG-91760 Change-Id: Ia867a49bc3deab1967bdedcf525ad4afe3967c2a Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Cleanup qwebenginescript and qwebenginescriptcollection apiMichal Klocek2020-09-281-4/+5
| | | | | | | | | | | | | | | | | | This patch cleans up script and collection apis: * do not allocate user_script on heap, there is no need for that. * remove isNull(), which was used by collection.findScript(name) * remove collection.size(), there is already collection.count() * remove collection.findScript(name), user can use findScripts(name) which returns list of scripts or empty list if not found * collection.findScripts(name) is simply collection.find(name) [ChangeLog] Removed QWebEngineScriptCollection::findScript(name), use QWebEngineScriptCollection::find(name) instead. Change-Id: Iecf8f1d7c26275b9ce3a1ea97cf4bd74b17f681e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix compilation after 757a9c21c1 in basePeter Varga2020-09-231-1/+1
| | | | | | | | | | | | Adaptations for the following qtbase changes: - acbf9a858b Cleanup QTypeInfo - 652bd1efca Make QStringList an alias to QList<QString> - 25351dcc54 Long live QKeyCombination! - ed8acbeb7c Automatically register data/debug stream operations in QMetaType - a735038376 Move QStateMachine from QtCore to QtScxml Change-Id: Ieb2677cd0572cc6dfe7be4b8f8dd4189a39bd3fe Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Set organizationName of all examples to QtExamplesJüri Valdmann2018-11-131-4/+1
| | | | | | | | Group directories under ~/.cache and ~/.config. Fixes: QTBUG-71669 Change-Id: Ia55aeab8c0e38f58afcbda128f04fd3d85c3df5e Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Chromium requires C++14Allan Sandfeld Jensen2018-10-111-1/+0
| | | | | | | | | QtWebEngineCore was only building because Chromium CPPFLAGS was overriding ours. And setting C++11 in our examples and tests now forces a downgrade. Change-Id: I3642394f15bb9974688991800552624d2379faf9 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Document Tango icons used in examplesKai Koehne2018-08-215-1/+36
| | | | | | Task-number: QTBUG-62053 Change-Id: I2df300239f4f02bb74f1ec27a74874b3877aabd0 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* Doc: Add missing dots (qtwebengine)Paul Wicking2018-06-221-1/+1
| | | | | | Task-number: QTBUG-68933 Change-Id: I395157a9931a0e0789b3791cc9b4d55dbcf8a4c2 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Improve user experience in stylesheet exampleSzabolcs David2018-05-165-10/+87
| | | | | | | | | | | - Add checkboxes to make configurable whether a stylesheet should be applied - Add a default stylesheet which rotates the page by 180 degree. Task-number: QTBUG-64816 Change-Id: Ic82c61f9d1e5384f3271a260bc390ac50f5b9a12 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* Remove hardcoded size from QWebEngineView::sizeHint()Szabolcs David2018-05-091-6/+50
| | | | | | | | | | | | 800x600 takes more space than expected when building a layout which contains QWebEngineView. Now this function does exactly the same as QWidget::sizeHint(). Add an auto test and update examples which were depending on this hardcoded size. Change-Id: I3b34b7d37cc99a8d6a49100d6c4b66b5b6a1c999 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix FDL license headerKai Koehne2018-01-231-3/+3
| | | | | Change-Id: I8d7cf992d1f51cc82168d5e01bbe4c062be09992 Reviewed-by: Michael Brüning <michael.bruning@qt.io>
* stylesheet example: Make dialog adapt to different sizesKai Koehne2018-01-091-136/+63
| | | | | | | | | | | The old code had fixed pixel sizes, which broke with high dpi and different font sizes. Also, simplify the hierarchy by replacing the top widget and the nested layouts with a Frame and grid layout. Task-number: QTBUG-64816 Change-Id: Ifeb458fb5d5e709e8add9c77c274dee13307d4c6 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* Fix license headers in stylesheetbrowser exampleKai Koehne2017-10-205-108/+153
| | | | | | | | Actually use the BSD license from header.BSD. Change-Id: I89e762a0cedcf02ee3732c62bc7869757aa9f271 Reviewed-by: Szabolcs David <davidsz@inf.u-szeged.hu> Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
* Fix stylesheetbrowser to build in Qt namespaced buildAlexandru Croitor2017-07-132-0/+4
| | | | | | Task-number: QTBUG-61865 Change-Id: Ic49496ed4fdabac5be8d540d4a5daa5c83fe36f2 Reviewed-by: Liang Qi <liang.qi@qt.io>
* Add StyleSheet Browser exampleSzabolcs David2017-05-1812-0/+831
Demonstrates how to inject and remove stylesheets using the user scripts API. Change-Id: If498365897618f873fa96d7a7b04a370e196618e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>