QLinkedList: only support data streaming if contained type does


Otherwise, QTypeTraits::has_i/ostream_operator_v will incorrectly
be true for any QLinkedList, and conditionally compiled code will
result in compile errors.

Add static_asserts to the test.

Pick-to: 6.2 6.3 6.4
Change-Id: I3a14c77e9ed65223ac1020b295a468a6b92ca6c2
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commita7dee0935cedf8a0b1e89e58c71d4dec367719d2
parent58792c420731124ad7cd7bd280367f7013d5390c
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeTue, 12 Jul 2022 22:27:56 +0200