Show all of the internal included files in the Supporting Files group

In XCode only the pro file was shown in the Supporting Files group as
it was the first one in the list. The others were not shown as it was
recreating the temporary QStringList each time instead of appending to
it.

Change-Id: Ifbc40a25156cf639eaa34b410f534726c41b6232
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
This commit is contained in:
Andy Shaw 2013-11-22 10:28:25 +01:00 committed by The Qt Project
parent 219455951b
commit 47e721100a

View File

@ -463,12 +463,12 @@ ProjectBuilderSources::files(QMakeProject *project) const
{
QStringList ret = project->values(ProKey(key)).toQStringList();
if(key == "QMAKE_INTERNAL_INCLUDED_FILES") {
for(int i = 0; i < ret.size(); ++i) {
QStringList newret;
for(int i = 0; i < ret.size(); ++i) {
if(!ret.at(i).endsWith(Option::prf_ext))
newret.append(ret.at(i));
ret = newret;
}
ret = newret;
}
if(key == "SOURCES" && project->first("TEMPLATE") == "app" && !project->isEmpty("ICON"))
ret.append(project->first("ICON").toQString());