QMake: Fix vcxproj filter folders in shadow builds
The folder structure below the "Source Files" and "Header Files"
filters was built from the file paths relative to the build
directory. In an out-of-source build these paths start with "..",
so the project showed nested folders called ".." and the whole path
to the source directory.
Build the folder structure from the path relative to the project
directory instead. Files outside of the project directory are
grouped by their path without the leading "..".
Fixes: QTBUG-133296
Change-Id: I6761b53082eab8d6df0976e3b16f91f8b7899098
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
| commit | 22661156c94cccf549f16b614856e26edd133104 |
| parent | 6f6c2636ffaf0e6b06c99027c853c8ebf5b6e51d |
| author | Joerg Bornemann <joerg.bornemann@qt.io> |
| committer | Joerg Bornemann <joerg.bornemann@qt.io> |
| commit time | Wed, 21 Oct 2026 21:24:34 +0000 |
- M qmake/generators/win32/msbuild_objectmodel.cpp
- M qmake/generators/win32/msvc_objectmodel.cpp
- M qmake/generators/win32/msvc_objectmodel.h
- A tests/auto/tools/qmake/testdata/vcxproj_filter_folders/Filter1/class1.cpp
- A tests/auto/tools/qmake/testdata/vcxproj_filter_folders/Filter1/class1.h
- A tests/auto/tools/qmake/testdata/vcxproj_filter_folders/filter_folders.pro
- A tests/auto/tools/qmake/testdata/vcxproj_filter_folders/main.cpp
- M tests/auto/tools/qmake/tst_qmake.cpp