From 372cc6b506d661608a3070169046f570309cdb00 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Fri, 3 Aug 2012 15:25:48 +0200 Subject: Add the filters for extra compilers for vcxproj files The files were grouped into the relevant filters but the filters themselves were not added. This now ensures the filters are added to the vcxproj files so they appear grouped correctly. Task-number: QTBUG-26755 Change-Id: I7d2c6fa96dcbb0496fd9d1bb1d01e7dd660052f4 Reviewed-by: Joerg Bornemann --- qmake/generators/win32/msbuild_objectmodel.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qmake/generators/win32/msbuild_objectmodel.cpp b/qmake/generators/win32/msbuild_objectmodel.cpp index 235e7ff634..b42aa621d9 100644 --- a/qmake/generators/win32/msbuild_objectmodel.cpp +++ b/qmake/generators/win32/msbuild_objectmodel.cpp @@ -545,6 +545,10 @@ void VCXProjectWriter::write(XmlOutput &xml, VCProjectSingleConfig &tool) addFilters(tempProj, xmlFilter, "Resource Files"); addFilters(tempProj, xmlFilter, "Source Files"); addFilters(tempProj, xmlFilter, "Translation Files"); + + for (int x = 0; x < tempProj.ExtraCompilers.count(); ++x) + addFilters(tempProj, xmlFilter, tempProj.ExtraCompilers.at(x)); + xmlFilter << closetag(); outputFilter(tempProj, xml, xmlFilter, "Source Files"); @@ -744,6 +748,10 @@ void VCXProjectWriter::write(XmlOutput &xml, VCProject &tool) addFilters(tool, xmlFilter, "Resource Files"); addFilters(tool, xmlFilter, "Source Files"); addFilters(tool, xmlFilter, "Translation Files"); + + for (int x = 0; x < tool.ExtraCompilers.count(); ++x) + addFilters(tool, xmlFilter, tool.ExtraCompilers.at(x)); + xmlFilter << closetag(); outputFilter(tool, xml, xmlFilter, "Source Files"); -- cgit v1.2.3