QQmlFile: stop using startsWith() for full-string compare


If a string starts with a given needle and has the exact size of that
needle, then it is equal to the needle. Remove the convoluted way to
call operator==. And fragile, in case the count was wrong.

Pick-to: 6.12
Change-Id: Idf9b7b98861018eb6d49fffd798f8dd8754d8fe3
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
commit34c38c22ec5a30db9d5d02214c68fb99011a14f8
parent3a1d149c3ee1cba2a1e23936af436c27e90fd0cf
authorThiago Macieira <thiago.macieira@intel.com>
committerThiago Macieira <thiago.macieira@intel.com>
commit timeThu, 8 Oct 2026 16:52:27 +0000