Replace private QCanvasBrush::createPaint with local helper


The only call-sites are in QCanvasPainter code, so add a helper there
that goes directly to the QCanvasBrushPrivate. This way we don't end up
with the private helper type QCPaint in the public header.

Addresses header review comment.

Pick-to: 6.12
Task-number: QTBUG-146286
Change-Id: I8d1e21f8ceb55b844c01210264ee439d27b2d549
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commit790875d569ee43fcfeaeba73a9fdb097842799ea
parentb1d349d7d8c8aa9b8c5ce471e4115baea59e199b
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeMon, 24 Aug 2026 13:15:44 +0000