QScxmlEventConnection: replace a QList with QVLA


... to hold QMetaObject::Connection objects.

Prepares for a world in which Connection is a move-only type (which it
may be optionally, for performance improvements).

Use QVLA instead of std::vector to minimize the changes to other code
(which uses append() etc; QVLA is the only Qt container that can deal
with move-only types). Pick a "random" Prealloc value of four, since
the default of 256 is way too large.

Amends 2f2e31fea77aef558e5c6e3727f9b31cf018599a.

Pick-to: 6.11 6.10 6.8
Task-number: QTBUG-145019
Change-Id: I303836789de167b580b5bfd81990225500496ea8
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
commitebedb499b2cc627e05f403157283e7a1ff251ea8
parente318726cd8d72c2831192c490cfdc87f991ecd52
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeThu, 26 Mar 2026 19:20:08 +0000