Fix and optimize multi-stop gradients
- Apply the color of the first stop into the first and last stop into
the last texture pixel.
- Use QRgb instead of QColor and utilize also qPremultiply().
- Use ARGB2RGBA() from qpixellayout_p.h which potentially works also on
big endian systems.
- Document how the gradientColorSpan() behaves.
- Make sure to not divide by zero.
Pick-to: 6.11
Change-Id: I27ef41606a3c175f839cd7be2b506310b11f83d1
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
| commit | aa465712625d3d62e0d1df1589768b39b3079a39 |
| parent | 12f323af4b7590602ad9728d1bbac90c9be78da9 |
| author | Kaj Grönholm <kaj.gronholm@qt.io> |
| committer | Kaj Grönholm <kaj.gronholm@qt.io> |
| commit time | Thu, 22 Jan 2026 16:19:48 +0200 |