Don't use staticAssertTypeMismatch to inform about an unsupported value


The assert-helper will go away soon, so replace it with the proper
solution.

Pick-to: 6.7
Change-Id: I6b38ed0189b316d6091144dd0a96b6ec77078af1
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
commit8a1ed56a26324565506a2a73a4e6d81dd237974d
parenta7d9272b94828c67e4530db57d356ca17ec9dc48
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeThu, 14 Dec 2023 23:40:46 +0100