CollisionNode: delete all shape connections on destruction


Since we store the shapes we can just loop through them on destruction
and disconnect all connections.

Fixes: QTBUG-108897
Pick-to: 6.5 6.4
Change-Id: I96873c1189caf8c26c13c8466fbf8285ba73299d
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
commitf3e14cd236b3b7d31ba95506aa87f6b030f56dcd
parent8cffba973ed8f974e8e8e34a9ed06627595f5be9
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeFri, 16 Dec 2022 11:19:56 +0100