API: Make gradients without stops transparent black


HTML canvas 2d context spec defines that when gradients don't have
any stops, they should be transparent black. So, to match with the spec,
remove Canvas Painter feature to have default stops from while to
transparent black.

Adjusted autotests for the expected outcome.

Pick-to: 6.12
Task-number: QTBUG-149422
Change-Id: I9e32b5b89ea620d9f94b207cafd5d8aec7ef8b0c
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commit00650793d86883796d2acaea1a143292ff192a9f
parenta72102329464c29cd3af13fa851454341f281bbb
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeTue, 25 Aug 2026 09:34:34 +0000