forked from qt-creator/qt-creator
Qmake: Remove QmakeProject::runConfigurationCreators
Not used anymore. Change-Id: Idba6fd4a8d6f4c7e251a78568b1da0debd93bf5f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -780,32 +780,6 @@ QList<QmakeProFile *> QmakeProject::allProFiles(const QList<ProjectType> &projec
|
||||
return list;
|
||||
}
|
||||
|
||||
QList<RunConfigurationCreationInfo>
|
||||
QmakeProject::runConfigurationCreators(const RunConfigurationFactory *factory,
|
||||
const QList<ProjectType> &projectTypes)
|
||||
{
|
||||
QList<ProjectType> realTypes = projectTypes;
|
||||
if (realTypes.isEmpty())
|
||||
realTypes = {ProjectType::ApplicationTemplate, ProjectType::ScriptTemplate};
|
||||
|
||||
const QList<QmakeProFile *> files = allProFiles(realTypes);
|
||||
const auto isQtcRunnable = [](const QmakeProFile *f) { return f->isQtcRunnable(); };
|
||||
const bool hasAnyQtcRunnable = Utils::anyOf(files, isQtcRunnable);
|
||||
|
||||
return Utils::transform(files, [&](QmakeProFile *f) {
|
||||
const QString targetName = f->filePath().toString();
|
||||
return RunConfigurationCreationInfo {
|
||||
factory,
|
||||
factory->runConfigurationBaseId(),
|
||||
targetName,
|
||||
QFileInfo(targetName).completeBaseName(),
|
||||
(hasAnyQtcRunnable && !f->isQtcRunnable())
|
||||
? RunConfigurationCreationInfo::ManualCreationOnly
|
||||
: RunConfigurationCreationInfo::AlwaysCreate
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
void QmakeProject::activeTargetWasChanged()
|
||||
{
|
||||
if (m_activeTarget) {
|
||||
|
||||
Reference in New Issue
Block a user