utils: add array-based EnumMap


We sometimes want to use arrays as enum-based dictionaries. Moving the
functionality out of QPlatformMediaPlayer to make it reusable.

Pick-to: 6.12
Change-Id: I2b0ff67b2f3185131016d40b5a28868321d52c31
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
commit99eda9976d1a12892a85292683bb10e112b1bb72
parent131c65fbcbfe03f75d7161562256d1fdedda68f4
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeTue, 6 Oct 2026 11:57:19 +0000