QCanvasGradient: clean up streaming and debug operators


Declare them as hidden friends in the scope of the class that they are
for, and remove the duplicate declaration that voids all the benefits of
having them as hidden friends in the first place.

Pick-to: 6.12
Change-Id: Ieb35aec507c4016da22da5ad7557c83fbd931575
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commitc896f3f4aa69defccf6da9e0b498c9ffd1f28d13
parentac40401d084c41583c6f8273c8a5a46da2c7bdd4
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeWed, 26 Aug 2026 15:49:21 +0000