fix crash when attach differ shellsurface to the same shellsurfaceitem


Change shellSurface from a raw pointer to a QPointer to prevent
crash caused by accessing the wild pointer when shellSurface is destroyed

Pick-to: 6.8
Change-Id: Iabf25ce9e3fab416b5b927bf768e94398516a710
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit1f73059ec58b1e9ab137b701607b59cfa77750c9
parent88f94bdbea19725b3c1a09e1f868c14dff286f53
authorHeng Liu <liuhenga@uniontech.com>
committerGary Wang <git@blumia.net>
commit timeTue, 12 Nov 2024 13:11:15 +0000