QCanvasGradient: inline conversion to brush and add rvalue overload
QCanvasBrush is fully defined and an inline member of the gradient,
so no need to go through a function call. The rvalue overload can move
the brush out, avoiding the ref-counting.
Pick-to: 6.12
Change-Id: I4dea59ff41b4f4e50fe3dc45a3cc48b5a9733167
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
| commit | ac40401d084c41583c6f8273c8a5a46da2c7bdd4 |
| parent | e32c11b0ef6d84997ef5f922f5bc8f8fc34e3b56 |
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| commit time | Wed, 26 Aug 2026 15:49:19 +0000 |