Make QCPainterPath::sliced() a regular function, not an lvalue overload


The function anyway creates a whole new QCPainterPath and returns that.
There is no reference to 'this' path, and the commands are copied.

Pick-to: 6.11
Change-Id: If0621ac6d9197dc2ebdfe47c69d9547d8f5eed5f
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commit6c8d9c3c2c6c44ce248b8a104c70f72d57c6612f
parent1b0c813410a77ad6a64e8f29a7c4eba558b73572
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeSat, 7 Feb 2026 18:39:35 +0100