forked from qt-creator/qt-creator
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:
@@ -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());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user