Make QCanvasGradient destructor protected


We have subclasses, and while those don't add any data members, a "raw"
gradient has no meaning, and we shouldn't store or pass copies of that
type around anyway. QCanvasGradient only exists to avoid duplicating
the common API and documentation relating to gradient stops.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Paul Olav Tvete <paul.tvete@qt.io>
Change-Id: Ic83e94571e168a507577382dce8494d8a35122a2
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
commitb25cf5d3a192bd0ba0bfd829970cc55d38e9705d
parent9ee2e719bdb0570b32730d1a1ac8d89981541ca4
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerPaul Olav Tvete <paul.tvete@qt.io>
commit timeWed, 27 May 2026 10:42:19 +0000