Add support for gradient strokes


This implements the gstroke and refactors a bit to share
the gradient code with gfill. This involves injecting a
QLottieGradientHolder class in the hierarchy using templates.

Note: After this, the 'c' (color) property is no longer
a required property of a stroke. We could still add this
in, but the only consequence is that a stroke that does
not define the color does not get a stroke (the color
will be (0, 0, 0, 0)) so it doesn't seem like it's worth
adding code specifically for that.

Fixes: QTBUG-140811
Change-Id: Ifb553bcf0f4b31f0ab3331bc588a6976c8dddc03
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
commit1021e32533233a266732d056b06f578a5d2c35e2
parent4aa1e55f6d031b46d582322315974e012ce48452
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit timeThu, 12 Mar 2026 14:24:50 +0100