summaryrefslogtreecommitdiffstats
path: root/qmake/generators/win32/msbuild_objectmodel.cpp
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2012-08-03 15:25:48 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-07 18:55:43 +0200
commit372cc6b506d661608a3070169046f570309cdb00 (patch)
treea3242e81df19cc94730ba7b5c1b4ac31570930ea /qmake/generators/win32/msbuild_objectmodel.cpp
parent5bea177ab11f057849d2b072c4ed088ef4e052f0 (diff)
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 <joerg.bornemann@nokia.com>
Diffstat (limited to 'qmake/generators/win32/msbuild_objectmodel.cpp')
-rw-r--r--qmake/generators/win32/msbuild_objectmodel.cpp8
1 files changed, 8 insertions, 0 deletions
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");