forked from qt-creator/qt-creator
Use new DeployConfigurationFactory::addInitialStep in some cases
Less code, less classes. Change-Id: I3ba9920f4f389e14c67cd8c5d937a4b4659865e7 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -37,23 +37,14 @@ using namespace ProjectExplorer;
|
||||
namespace Ios {
|
||||
namespace Internal {
|
||||
|
||||
IosDeployConfiguration::IosDeployConfiguration(Target *parent, Core::Id id)
|
||||
: DeployConfiguration(parent, id)
|
||||
{
|
||||
}
|
||||
|
||||
void IosDeployConfiguration::initialize()
|
||||
{
|
||||
stepList()->appendStep(new IosDeployStep(stepList()));
|
||||
}
|
||||
|
||||
IosDeployConfigurationFactory::IosDeployConfigurationFactory()
|
||||
{
|
||||
registerDeployConfiguration<IosDeployConfiguration>("Qt4ProjectManager.IosDeployConfiguration");
|
||||
registerDeployConfiguration<DeployConfiguration>("Qt4ProjectManager.IosDeployConfiguration");
|
||||
setSupportedProjectType(QmakeProjectManager::Constants::QMAKEPROJECT_ID);
|
||||
addSupportedTargetDeviceType(Constants::IOS_DEVICE_TYPE);
|
||||
addSupportedTargetDeviceType(Constants::IOS_SIMULATOR_TYPE);
|
||||
setDefaultDisplayName(IosDeployConfiguration::tr("Deploy on iOS"));
|
||||
setDefaultDisplayName(QCoreApplication::translate("Ios::Internal", "Deploy on iOS"));
|
||||
addInitialStep(IosDeployStep::stepId());
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user