QCanvasGradient: define inline function directly where it's declared


Given its brevity, there's no advantage in having it outside the
declaration.

Pick-to: 6.12
Change-Id: I269f2add5e5c1b489734fb43df88af323da78ad6
Reviewed-by: Owais Akhtar <owais.akhtar@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commitabe78903295fd20d3032d59c0426d04466ccfab6
parentc896f3f4aa69defccf6da9e0b498c9ffd1f28d13
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeWed, 26 Aug 2026 15:49:23 +0000