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:
parent
219455951b
commit
47e721100a
@ -463,12 +463,12 @@ ProjectBuilderSources::files(QMakeProject *project) const
|
|||||||
{
|
{
|
||||||
QStringList ret = project->values(ProKey(key)).toQStringList();
|
QStringList ret = project->values(ProKey(key)).toQStringList();
|
||||||
if(key == "QMAKE_INTERNAL_INCLUDED_FILES") {
|
if(key == "QMAKE_INTERNAL_INCLUDED_FILES") {
|
||||||
|
QStringList newret;
|
||||||
for(int i = 0; i < ret.size(); ++i) {
|
for(int i = 0; i < ret.size(); ++i) {
|
||||||
QStringList newret;
|
|
||||||
if(!ret.at(i).endsWith(Option::prf_ext))
|
if(!ret.at(i).endsWith(Option::prf_ext))
|
||||||
newret.append(ret.at(i));
|
newret.append(ret.at(i));
|
||||||
ret = newret;
|
|
||||||
}
|
}
|
||||||
|
ret = newret;
|
||||||
}
|
}
|
||||||
if(key == "SOURCES" && project->first("TEMPLATE") == "app" && !project->isEmpty("ICON"))
|
if(key == "SOURCES" && project->first("TEMPLATE") == "app" && !project->isEmpty("ICON"))
|
||||||
ret.append(project->first("ICON").toQString());
|
ret.append(project->first("ICON").toQString());
|
||||||
|
Loading…
Reference in New Issue
Block a user