1990 Commits
Author SHA1 Message Date
Qt Submodule Update Bot ebff20bb73 Update dependencies on 'tqtc/lts-6.8-opensource' in qt/tqtc-qtsvg
Change-Id: Ieebc0d3c6f84f00742ea6824260e4e522306a0c0
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
v6.8.4-lts-lgpl
2025-10-01 14:06:28 +00:00
Tarja Sundqvist f465e1688f Revert "Update commercial SPDX-License-Identifier"
This reverts commit 247fa766d4.

The revert is needed for the Qt 6.8 LTS opensource releases.
They cannot contain commercial SPDX license identifiers.

Task-number: QTLTSOSS-264
Change-Id: I4497677abcbb7831494c2ba845d2c771908ec0a8
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
2025-09-11 12:05:52 +03:00
Qt Submodule Update Bot 9110f78b98 Update dependencies on 'tqtc/lts-6.8.4' in qt/tqtc-qtsvg
Change-Id: Ie9273f32e12b4c6b114aacb69f56c4c86d68b32f
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-05 22:33:39 +00:00
Qt Submodule Update Bot c1899da936 Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: I871314f6980cd91de74d66e9fd6535d099551cab
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-03 16:21:35 +00:00
Qt Submodule Update Bot 67527e378f Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: Ied127e7f964259cd399fba68b0cc0b7648f5a4c2
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-01 14:17:39 +00:00
Qt Submodule Update Bot 8687ed0519 Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: I1a8557008cc1b0acedf22fe89ed483bae2d717a7
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-06-26 06:57:06 +00:00
Qt Submodule Update Bot f1593a8fd2 Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: I1c7cb8b5fef15894097642ab2e20985b976f206e
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-06-22 17:27:14 +00:00
Robert Löhning af708aecc3 Test parsing of malformed data url
qDecodeDataUrl() called from createImageNode() had a bug which caused an
assert when parsing the svg in this test. The issue was fixed by
4d839093b480d30eef8a89c0f864ee3f340adaa1 in qtbase. The test shall make
sure that QSvgRenderer warns about the invalid input.

Amends b65af14a2599cd7ad155bd254db9e86d795505d3

Pick-to: 6.5
Change-Id: I35e226046061d2bb40cc5719d8a67f16ae34fe76
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
(cherry picked from commit 2fbfed685f0fa234e37ebe4593d57a7e41930579)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit e12653626354e4cc49c70b8b9d5d5a2462ca4fbe)
2025-06-16 08:37:20 +00:00
Tarja Sundqvist 247fa766d4 Update commercial SPDX-License-Identifier
Updated the commercial SPDX-License-Identifier to
the source files. Examples, tests, documentation,
or build files are not updated.

Modified licenseRule.json and REUSE.toml accordingly.

Task-number: QTBUG-136484
Change-Id: If7d8c611af4cb99b4d32ede2fd7f3fd6d43b5f87
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
2025-06-16 11:37:06 +03:00
Qt Submodule Update Bot ff6aeb3cdf Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: Ie845dac9294cc0e564f460542c016f9df722907c
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-06-15 16:50:23 +00:00
Qt Submodule Update Bot c9989c6a50 Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: Id1743532809a970914d06e08ae8471e7e80e3d3c
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-06-12 18:50:51 +00:00
Qt Submodule Update Bot 9772c81388 Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: Ifda234223060b14d2ac25a8f403081d2f52cbf39
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-06-06 03:35:23 +00:00
Alexandru CroitorandQt Cherry-pick Bot e0ebc50cf0 CMake: Add PURL and CPE info to 3rd party attribution files
[ChangeLog][Third-Party Code] Added PURL and CPE information to the
attribution files of 3rd party sources.

Pick-to: 6.5
Fixes: QTBUG-137184
Task-number: QTBUG-129602
Change-Id: I75cdc1afe3519edea319c012127ede823c7dc9f7
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit fe5d42118721966bbe016c3aa343fbfc942d4011)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 06829010982fdfbb391696220528dd16eca26c37)
(cherry picked from commit d6642cd6f025b291167fb43689e6ede930a78c32)
2025-06-05 02:15:16 +00:00
Eskil Abrahamsen BlomfeldtandQt Cherry-pick Bot 8bdaa95e8b Don't add outlines to text when there is none
Qt SVG would indiscriminately add outlines to text. Since the pen
has Qt::NoBrush, the outline would not be visible with a normal
QPainter, but it did always trigger the QPainterPath code path which
is taken when the text uses features we don't support through the
native rasterizer backend.

In turn, this would cause all text to be unsearchable when printing
the SVG to a PDF. In addition, all text would be too thick in this
case because the PDF generator adds the outline even if the brush
is Qt::NoBrush.

Fixes: QTBUG-123817
Change-Id: Icff637e65ea9f0c867a374fcbba3f6ad4a6756fc
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
(cherry picked from commit 4d9bd9572f340fb9bc2f96f55ea6836386ac0b0d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 09918e3da44f80bff8bb13cd65984bd7e00c95e6)
(cherry picked from commit 07b3434f91c95d196f687c51e1a58a95a0b1ef2e)
2025-06-03 23:25:40 +00:00
Qt Submodule Update Bot 34ad184630 Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: I0930a67937b5171cd6b8f1bdd96962df0e7d9d33
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-06-03 20:50:44 +00:00
Giuseppe D'AngeloandQt Cherry-pick Bot eeaba87228 SVG icon engine: do not add the SVG file on creation
When QIcon asks the SVG icon plugin to create an engine, do not call
addFile on the newly created engine. Inside the plugin code, we lack the
information about which mode and state the user requested. The code was
hardcoding Normal / Off, but that's wrong in the general case (doesn't
match what the user requested, possibly resulting in a data loss).
(This sounds like a problem with the QIcon plugin API, where create()
only takes the filename and not also the size, mode, state.)

Instead, leave the engine empty; QIcon will detect it and call addFile
for us, this time passing the right mode and state.

Change-Id: If1d6c83339c79791f40ecc1832c1631de23d4856
Fixes: QTBUG-135483
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
(cherry picked from commit 260b0a34ce7c7c2c418d501cfeb4dff214c3b706)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 5088d0db5f1aa7219e5f0967ddc3ef35ecfc188c)
2025-05-30 14:17:17 +00:00
Qt Submodule Update Bot 1d87cee9d4 Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: Ida613b5ab86fdf3b678203800584063e63f2c802
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-05-29 03:12:52 +00:00
Qt Submodule Update Bot 7b37a8c58f Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: Ia3af40d19360b627a0844b0734b75076bd93b488
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-05-26 19:29:46 +00:00
Robert LöhningandQt Cherry-pick Bot 6ba212425a Extend benchmark for text
To keep an eye on how fixing text rendering influences performance.

Task-number: QTBUG-126268
Change-Id: I01c942454d7b9bd8bf111e373d28302dec8cdb77
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
(cherry picked from commit bdc910e34fbc6f7a9cdf9ecee82652eca22bdd9e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit fa1e9323d9310eec8b96e2a91d66b4518be6fb5a)
2025-05-24 01:17:31 +00:00
Juha Vuolle 0046410072 Fix tst_qsvgrenderer when cssparser is disabled
Remove css style usage from opacity() as css is not the core tested
functionality. Skip stylePropagation() if cssparser is disabled.

Fixes: QTBUG-136918
Change-Id: I0718fd82f44415dfeb072b661a6ba65d311cc147
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
(cherry picked from commit 333ae371df05a022208fc5e82fbd101e2e029791)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit dcee421bf1f5c97709cdee4afe29abd2ebb7ffc5)
2025-05-19 15:11:58 +03:00
Matthias RauterandQt Cherry-pick Bot 07e1268235 Extend benchmark for rendering
With the exended features it is important to have an eye on rendering
performance. Both rendering on a QPicture and QImage are tested to
isolate the processing in QSvgRenderer and QPainter.

Tested are standard path drawing with tiger.svg as well as elements that
operate on pixel buffers, that are filters, mask and the correct
implementation of group opacity.

Manually cherry-picked from 90114ae5da84714b5c5ec88151a3bf133363c43f

Task-number: QTBUG-135075
Change-Id: I2a877c72f6000725f1b4372a04184c26e5c74243
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
(cherry picked from commit c6f5af72db2021ac160ddbb5669ca51109b7a5c3)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-05-16 16:22:21 +00:00
Qt Submodule Update Bot 9142d9f4e3 Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: Iadf368eb0465cf97c16b5c099b1d73e460d775d0
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-05-15 15:08:15 +00:00
Qt Submodule Update Bot f0f2f3d1e5 Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: I21a30cf172d8301bc812c43681a33994b68941d6
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-05-12 13:21:38 +00:00
Qt Submodule Update Bot bf0390a13b Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: Idd0be638ffea565a729536be5c0c565ea72b8abd
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-05-10 11:17:09 +00:00
Qt Submodule Update Bot e7fdbce3a3 Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: I2923e361080ceea9d214e95fe736f0af608588b6
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-05-06 04:57:10 +00:00
Robert LöhningandQt Cherry-pick Bot 8711319aab CMake: Make qtsvg benchmark test a standalone project
Add the boilerplate standalone test prelude to the test, so that it
can be opened with an IDE without the qt-cmake-standalone-test script,
but directly with qt-cmake or cmake. Boilerplate was copied from the
auto tests which already had it.

I also had to remove the requirement of Qt::Widgets which seemed unused
anyway.

Change-Id: I19d49c8d2373eb325b9eb7936997033471584d18
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
(cherry picked from commit 9490189954af5814a5a588854bc0aff2295f8ff8)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 412b1775742498f539f00212fc5af124c5a75efd)
2025-05-02 18:17:42 +00:00
Robert Löhning 30ec80ae3b Add missing tests for empty rects
Those led to divisions by zero before that was fixed in 78cbbc1.

Credit to OSS-Fuzz which found them as issue 23588.

Task-number: QTBUG-49160
Pick-to: 6.5
Change-Id: I63210104e5d9270f1037919f22a9ff1fa7c110c3
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
(cherry picked from commit 5366939f9146cac993eb37e6f3dfddca4f6f9dc8)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit b116901f3387eedfa865b986341d9bb8fa06d821)
2025-05-02 10:13:23 +00:00
Andreas EliassonandQt Cherry-pick Bot f0468b98ce Doc: Add \brief to Qt SVG Widgets C++ classes page
Clarify that Qt SVG Widgets is part of the Qt SVG module.

Fixes: QTBUG-134624
Pick-to: 6.5
Change-Id: Ica200bd76ea39f1fd3c49663f8fd7bca4648ae94
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
(cherry picked from commit 0f8a022579201d64a2f0cee072fef4449c57ec27)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 422928bc088716e970f5c236daad43dc3d737976)
2025-04-30 19:20:43 +00:00
Tarja Sundqvist b3c1f69cb9 Update the tqtc repository to dependencies.yaml
Updated the tqtc repository the dependencies.yaml
for the LTS Commercial releases.

Change-Id: Ibb818ccee2e8fc2082a2088d69fe45d52db9a195
Reviewed-by: Tarja Sundqvist <tarja.sundqvist@qt.io>
2025-04-30 16:05:27 +03:00
Qt Submodule Update Bot f2b179a305 Update dependencies on 'tqtc/lts-6.8' in qt/tqtc-qtsvg
Change-Id: I18799ba5d498c38b89f04fb6aec665c8a4a01b7e
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-04-29 20:36:18 +00:00
Tarja Sundqvist 5211db5890 Bump version to 6.8.4
Change-Id: I03beebdcf8c7474d9f1eb4c08f7ecb93f4cfa525
Reviewed-by: Tarja Sundqvist <tarja.sundqvist@qt.io>
2025-04-29 23:36:16 +03:00
Tarja Sundqvist 1b3635df0b Add alias to module_config.yaml
Change-Id: I618f3c01d2ebb3bf03031d0d62b734c190aad7f9
Reviewed-by: Toni Saario <toni.saario@qt.io>
2025-04-25 15:15:11 +03:00
Qt Submodule Update Bot 2cfc9d5ae5 Update dependencies on '6.8' in qt/qtsvg
Change-Id: I63a535d01cbd8c3ac647fce75cb17cf192675262
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-04-17 04:48:02 +00:00
Qt Submodule Update Bot e03254d12c Update dependencies on '6.8' in qt/qtsvg
Change-Id: I73f3d74c7d6e7b2353c7de3316431f4b7f800202
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-04-11 03:21:00 +00:00
Qt Submodule Update Bot e0e12caf53 Update dependencies on '6.8' in qt/qtsvg
Change-Id: I2b4bdd93ea5c24be48f728f58244112225cca05f
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-04-07 12:25:08 +00:00
Qt Submodule Update Bot cc155853a0 Update dependencies on '6.8' in qt/qtsvg
Change-Id: I85bf923735783a116397475b5a94ba7de93a2216
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-04-03 03:21:05 +00:00
Qt Submodule Update Bot 737a3a8dd7 Update dependencies on '6.8' in qt/qtsvg
Change-Id: I38ac7eb0da3ccca5e2253d597c89567eaa3f1f9a
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-04-02 03:21:15 +00:00
Qt Submodule Update Bot 2a038a91b4 Update dependencies on '6.8' in qt/qtsvg
Change-Id: I3b5f89c58957fe6bd21922f2efe800b8721cd079
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-03-29 08:49:09 +00:00
Matthias RauterandQt Cherry-pick Bot 3532ad641b Port benchmark to cmake
Task-number: QTBUG-135075
Change-Id: Id580c50a889ab04a7b710fb84493d9b40c66b247
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
(cherry picked from commit e7a313f0a7349839d4a6966b233f07014d478e9b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 2e59dd89b90d119a6cef20ea5d2f675a0b1635e7)
2025-03-28 17:51:06 +00:00
Matthias RauterandQt Cherry-pick Bot 3773e1392c Use qDecodeDataUrl to parse image from data url
The old code scanned for the "base64," token from the end
(lastIndexOf()), even though the token appears near the beginning of a
data: URL and cannot repeat. This means we scan potentially large
amounts of (base-64-encoded) image data without purpose.

Instead of using indexOf(), port to QtCore's qDecodeDataUrl(), which
also takes non-base64-encoded data into account. The disadvantage is
that this now requires several recodings (QString -> QUrl -> QString ->
QByteArray). Created QTBUG-134665 to ask for a faster implementation.

Pick-to: 6.5
Task-number: QTBUG-134665
Change-Id: I59e7039be44cd2e0a1a97d78db203a330196d13f
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit b65af14a2599cd7ad155bd254db9e86d795505d3)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit aac71446db072ee43a9efc9852c261daefb4de80)
2025-03-27 10:40:52 +00:00
Paul WickingandQt Cherry-pick Bot 20ef144699 Add .gitreview file
`git-review` is a command line tool for interacting with Gerrit.
Some IDEs offer support for this tool, either natively or through
plugins. The tool relies on a configuration file, .gitreview. Adding
this configuration file to our repositories simplifies initial setup
for contributors that use the tool directly or through their IDE of
choice.

The configuration file adds a remote called 'gerrit'. This is the
default for the tool, and also the name set for
codereview.qt-project.org by Qt's `init-repository` script. Thus,
the configuration should work seamlessly alongside other repository
helpers.

Task-number: QTBUG-132604
Change-Id: I45037ba4c02c305b385d5c4524e37505c63c1784
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
(cherry picked from commit c74d930ee01e8566b5e5802a18f85a8703c7c90e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 7564a866e4ffd3e7aa2b219d06e672ad6a11fa22)
2025-03-24 22:28:12 +00:00
Dennis OberstandQt Cherry-pick Bot 2f72b0dbf8 Fix mixed-type usage of qFuzzyCompare
When building Qt with a non-double qreal type, i.e.
QT_COORD_TYPE=float, mixing types on qFuzzyCompare will result
in ambiguities since only

        qFuzzyCompare(float, float)
        qFuzzyCompare(double, double)

are accepted.

Change-Id: Iee8154e3296a281f8efaac276b9a4d66a20d420b
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
(cherry picked from commit 49affb72c9350eda9c9371bed699de53b8990459)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 72ee803755511bc71c69c04c2feb73cc7301aaa8)
2025-03-17 08:53:47 +00:00
Lucie GérardandQt Cherry-pick Bot 1a2c6dbbea Update licensing of files with infrastructure type
A QUIP 18[1] update sets git files, REUSE.toml and licenseRule.json
as infrastructure type files. They are licensed with:
LicenseRef-Qt-Commercial OR BSD-3-Clause

[1]: https://contribute.qt-project.org/quips/18

Change-Id: I16e723e1c91db7ebf3365df8beee4608337e4ea5
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit e3279704e9c2bc5f4456eb5a00ed7cc5b3ea9f36)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 97a5e781f5239a6f2d9839772ffe865dec9dc13b)
2025-03-13 21:29:18 +00:00
Lucie Gérard 16b59c7adb Make module ready for source SBOM checking
This includes:
- turning VERIFY_SOURCE_SBOM ON
- adding rules to the licenseRule.json files
- correcting the licensing given via REUSE.toml files
- renaming license files not located in LICENSES folder.
Their name needs to be prefixed with `LICENSE.` to be ignored
by reuse and excluded from the source SBOM. The names are
updated in the corresponding qt_attribution.json

A lot of files are skipped during the license test,
but all are present in the source SBOM.
This is why corrections are needed before turning the
source SBOM check on.

[ChangeLog][Third-Party Code] Renamed certain license files outside of
LICENSES with `LICENSE.` prefix such that reuse will correctly ignore them.

Task-number: QTBUG-131434
Change-Id: I7dece901391b5ce77acf3c2eba28253d07348838
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit f507883c0a7801bf54ed647a98a649b7c0d02b81)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 0191fed2885d80cf381337a41519ee82712b1c81)
2025-03-13 16:04:05 +01:00
Hatem ElKharashyandQt Cherry-pick Bot dfd7be2985 Mark qsvghandler as security sensitive
QSvgHandler class parses data from svg files before rendering.

Change-Id: I3294b0841f7152736da54e5c72b3b5f5684c1cbc
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
(cherry picked from commit bcd8adbedc52bee5ad3efd4de2b765ed0715ae6d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 6c4ef2e499e3318a385c93950713561cefe7444f)
2025-03-11 15:59:37 +00:00
Hatem ElKharashyandQt Cherry-pick Bot 257bc3ae63 Fix font family out of bound access
Simple check before accessing font family after trimming.

Fixes: QTBUG-134044
Pick-to: 6.7
Change-Id: I0985118087d944b94d7f57241151bf728f55cb56
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
(cherry picked from commit 274d201f1ef914b373776c4d071d1d025a920494)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 7c7c613a7dceeaccd13a53f70b8c914ad4a7813d)
2025-03-11 15:59:37 +00:00
Robert Löhning 93c51192ca Guard against empty polygons
Amends 05be1624423789148bd8e7beb74667a29ba12509
which added the same guard only for polylines.

The missing guard caused a crash in our baseline test.

Credit to OSS-Fuzz which independently found this as
issue 399769595.

Pick-to: 6.8.3
Change-Id: Ibf150b3cf9d31efce1f658d6b2e53ce82eb33382
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
(cherry picked from commit 8fdfbd940e1112e01a144abae1ebf43cc8a21dbc)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 4a53d557b9c05c8ffce367e045cd0a706b9020e7)
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
2025-03-11 09:13:29 +00:00
Qt Submodule Update Bot 4422b48cb3 Update dependencies on '6.8' in qt/qtsvg
Change-Id: I709e896647477f66a826813367bad46feef0e166
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-03-04 09:25:15 +00:00
Hatem ElKharashyandQt Cherry-pick Bot c18a067576 Fix rendering lines with zero length
In case of having a zero length line, the line should be rendered
as a point when the stroke-linecap is set to round or square.

Fixes: QTBUG-132468
Pick-to: 6.7
Change-Id: I7fb12be891eb5eb4fcee0826a4ef8aeb075d4c7d
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
(cherry picked from commit 05be1624423789148bd8e7beb74667a29ba12509)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit fa64e63daccc7b7d2dd88c365a5724d502e457d1)
2025-02-28 20:28:08 +00:00
Qt Submodule Update Bot 945685d934 Update dependencies on '6.8' in qt/qtsvg
Change-Id: I472bd434a09773131ddf0416156dded3cfb803b6
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-02-24 05:32:42 +00:00