Don't leak applied trim path


The applied trim path can either be owned or borrowed. Tag the pointer
with the respective bit and delete owned trim paths when the shape is
deleted. Clone owned trim paths when the shape is cloned.

Pick-to: 6.11
Change-Id: I55c527f2a681c8fa299f39c1b0c4203092995178
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
commit698a4a833c380501a12dfd8da1a960e6b0b970b8
parentfccc95ffb1756e94eb89cfb043e65cf2445fb286
authorUlf Hermann <ulf.hermann@qt.io>
committerUlf Hermann <ulf.hermann@qt.io>
commit timeThu, 8 Jan 2026 15:34:21 +0100