ProjectExplorer: Use a addSupportedTargetDeviceType function

... also for BuildConfigurationFactory, similar to Run and Deploy.

Change-Id: I453f08bf145d6a2e764d150646c698d624ae2ce9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2019-01-30 18:48:58 +01:00
parent aa2ad04e04
commit 4ae0ad3ab5
3 changed files with 5 additions and 4 deletions

View File

@@ -143,7 +143,8 @@ void IosBuildConfiguration::updateQmakeCommand()
IosBuildConfigurationFactory::IosBuildConfigurationFactory()
{
registerBuildConfiguration<IosBuildConfiguration>(QmakeProjectManager::Constants::QMAKE_BC_ID);
setSupportedTargetDeviceTypes({Constants::IOS_DEVICE_TYPE, Constants::IOS_SIMULATOR_TYPE});
addSupportedTargetDeviceType(Constants::IOS_DEVICE_TYPE);
addSupportedTargetDeviceType(Constants::IOS_SIMULATOR_TYPE);
setBasePriority(1);
}