Project: Make Project::files return a FileNameList

Change-Id: I75ceb22ac65b8288d824f229d44089cba6fc8ea3
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Tobias Hunger
2017-12-06 10:27:27 +01:00
parent e6fb9f08db
commit 18f38ff18e
38 changed files with 109 additions and 92 deletions

View File

@@ -283,7 +283,7 @@ public:
Q_UNUSED(mode);
//return { Core::Id(PythonExecutableId) };
PythonProject *project = static_cast<PythonProject *>(parent->project());
return project->files(ProjectExplorer::Project::AllFiles);
return Utils::transform(project->files(ProjectExplorer::Project::AllFiles), &Utils::FileName::toString);
}
bool canCreateHelper(Target *parent, const QString &buildTarget) const override
@@ -292,7 +292,7 @@ public:
const QString script = buildTarget;
if (script.endsWith(".pyqtc"))
return false;
return project->files(ProjectExplorer::Project::AllFiles).contains(script);
return project->files(ProjectExplorer::Project::AllFiles).contains(FileName::fromString(script));
}
};