QQmlFile: modernize the code with constexpr QLatin1StringView


This was apparently old Qt 4.x code. And fragile, with hardcoded "magic"
numbers. Now we're using .size() instead of those, though now with a
"+ 2" expression to indicate the ":/" suffix that is required, except
for "file" which incorrectly requires "file://" (fixing that left as an
exercise to the reader).

Pick-to: 6.12
Change-Id: If0ba9d6b76920bc35f41fffd672a676b3960359d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commitfe58ebb804ebae90f3819d7a0e5d42678b374198
parentc5ccac38394352040a7b9f94234811771f9e0e5e
authorThiago Macieira <thiago.macieira@intel.com>
committerUlf Hermann <ulf.hermann@qt.io>
commit timeMon, 12 Oct 2026 12:28:16 +0000