ProjectExplorer: Simplify collection of RunConfigurationCreationInfos

Instead of calling twice for AutoCreated and UserCreated, call once
and record to which case it belongs. Only the 'both' and
'user only' combination are ever used.

Change-Id: I9c15085bcbb4bf6584a6156135f2084dbfc51c1c
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2018-02-08 15:07:10 +01:00
parent 3da9c89981
commit 9f2bb5d0c5
24 changed files with 93 additions and 103 deletions

View File

@@ -271,10 +271,8 @@ public:
addSupportedProjectType(PythonProjectId);
}
QList<RunConfigurationCreationInfo> availableCreators(Target *parent,
CreationMode mode) const override
QList<RunConfigurationCreationInfo> availableCreators(Target *parent) const override
{
Q_UNUSED(mode);
return Utils::transform(parent->project()->files(Project::AllFiles),[this](const FileName &fn) {
return convert(fn.toString(), fn.toString());
});