forked from qt-creator/qt-creator
ProjectExplorer: Reduce ProjectExplorer::configureAsExampleProject()
... to the bits that are actually used. Change-Id: I39a6ed1f4136d75b776bb89eec6165479097a4ec Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -938,19 +938,15 @@ void CentralizedFolderWatcher::delayedFolderChanged(const QString &folder)
|
||||
m_project->updateCodeModels();
|
||||
}
|
||||
|
||||
void QmakeProject::configureAsExampleProject(const QSet<Core::Id> &platforms)
|
||||
void QmakeProject::configureAsExampleProject()
|
||||
{
|
||||
QList<BuildInfo> infoList;
|
||||
QList<Kit *> kits = KitManager::kits();
|
||||
foreach (Kit *k, kits) {
|
||||
QtSupport::BaseQtVersion *version = QtSupport::QtKitAspect::qtVersion(k);
|
||||
if (!version
|
||||
|| (!platforms.isEmpty()
|
||||
&& !Utils::contains(version->targetDeviceTypes(), [platforms](Core::Id i) { return platforms.contains(i); })))
|
||||
continue;
|
||||
|
||||
if (auto factory = BuildConfigurationFactory::find(k, projectFilePath()))
|
||||
infoList << factory->allAvailableSetups(k, projectFilePath());
|
||||
const QList<Kit *> kits = KitManager::kits();
|
||||
for (Kit *k : kits) {
|
||||
if (QtSupport::QtKitAspect::qtVersion(k) != nullptr) {
|
||||
if (auto factory = BuildConfigurationFactory::find(k, projectFilePath()))
|
||||
infoList << factory->allAvailableSetups(k, projectFilePath());
|
||||
}
|
||||
}
|
||||
setup(infoList);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user