qmltyperegistrar: Properly handle QML.ExtraVersion


We need to print the extra versions into the .qmltypes files so that
tooling can see them.

Amends commit 4386de70cb0e88d3738acdf5220a3b0f1142996e.

Pick-to: 6.12 6.8
Task-number: QTBUG-147814
Change-Id: I023b0c822f865ac0e305f90facb3f2fa2e200c19
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commit31760a85891f840b777ff44649952e1fb0382109
parent51c3aac737341ee8f893a4e5cb2f744a08500f18
authorUlf Hermann <ulf.hermann@qt.io>
committerUlf Hermann <ulf.hermann@qt.io>
commit timeTue, 20 Oct 2026 13:18:15 +0000