Canvas2D: Make brushes proper QML types


Move brushes to use QML types. Every brush type has its own type.
This means that gradient stops method needs to be created for each
gradient type, we can't do it for QCanvasGradient as it is an abstract
class. But this is probably a good thing and allows as adding methods
specific to each gradient type. Non-gradient types currently don't
contain any methods, but those can be added later.

Note: Gradient stops colors are now handled as QColor like commonly
in QML. This means that QCanvas2DUtils::qColorFromString() is not used
there anymore, dropping support for string colors of type
"rgba(0, 255, 0, 255)". This shouldn't be an issue, users have
Qt.rgba(), Qt.hsla() etc. to cover these.

Change-Id: I4c80c4576b4360d2575f9135af63667364c3b252
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
commitc1d48ba3a25f02dcf525fcbd2da4b3dae13c0cab
parentaa46f8545a1583dee44200b1709ec4ce1b17b6ad
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeWed, 13 May 2026 04:23:14 +0000