QMake: Fix duplicate qrc content items in vcxproj


The Visual Studio generator adds every file that a .qrc depends on
to the "Resource Files" filter. If such a file is also a source or
header of the project, it ended up as both ClCompile (or ClInclude)
and None item, and Visual Studio refuses to load the project with
"is included as ClCompile and as None".

Only add the .qrc dependencies that no other filter lists yet.
Compare the paths case-insensitively, like MSBuild does, so that
"Main.cpp" in the .qrc matches "main.cpp" in SOURCES.

Fixes: QTBUG-77454
Pick-to: 6.12
Change-Id: I454a6df2112b3b17fa4b54962bafddae180a5b56
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
commitd12bf6f164de250ac3cbb77439dbaf0b2badf8aa
parentf067a7402a6b58ed474d59342911fa56fb5f7191
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeWed, 21 Oct 2026 21:24:34 +0000