QQuick3DParticleAffector: don't pass const Connection to disconnect()


That overload will be deprecated, because the function modifies the
argument.

Use a consume loop to avoid the detach (attempt): this is in the
dtor, so nothing uses the m_connections container afterwards. The
unRegisterParticleAffector() call only affects containers in
QQuick3DParticleSystem.

Amends 4838a84935cd9f2a4d74cdbf737b9c3da11aabfa (picked to 6.1).

Pick-to: 6.12 6.11 6.8
Task-number: QTBUG-144929
Change-Id: I6d01c284a1c1572c7cc04e76e2985f641dd04b33
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
commit45ba1710d44ab6018beda75e95ec1366eb744186
parent0fda3b3fd8f37dc38afb30c36626795c479e6da5
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeMon, 24 Aug 2026 12:41:42 +0000