Fix QCGradient id hashing
When the stop positions and colors were the same but in different order,
the hash returned same id, resulting gradients to use the same image.
Fixed hash to not collide as easily, clarified that the method returns
key and not id, and changed the value to be unsigned so overflow is not UB.
Pick-to: 6.11
Change-Id: Ia114730ad949a8930a0f25936f282ac00764fd37
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
| commit | 097e06db9908fa7c2ca1aa4effdfb74d18f21f6a |
| parent | 88a5a87fd50e5bcb120d958b78f8b6e3bcb6162f |
| author | Kaj Grönholm <kaj.gronholm@qt.io> |
| committer | Kaj Grönholm <kaj.gronholm@qt.io> |
| commit time | Fri, 9 Jan 2026 19:36:40 +0200 |