Fix radial gradient unit parsing


The QSvgHandler ignored the units for radial gradient, and tried
to convert the parsed number directly to a double. Instead,
convertToNumber function can be used to properly check for units.

Fixes: QTBUG-126482
Pick-to: 6.9 6.8 6.5
Change-Id: I4632dcf041bcd0b1496853a0b009c97dd01092a6
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
commitcc9cec53830d64940bea2787be3da616117b64cf
parent1a6e6d933d756758e0cb4ab66129bf274674e4e0
authorHatem ElKharashy <hatem.elkharashy@qt.io>
committerHatem ElKharashy <hatem.elkharashy@qt.io>
commit timeWed, 21 May 2025 12:15:22 +0300