forked from qt-creator/qt-creator
ProjectExplorer: Use setter for IDevice::machineType
First step towards streamlining the IDevice::ctor/create lines of functions. Change-Id: I44226f8a05902cadd40c8820ab67752070d186c0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -47,21 +47,21 @@ static const QLatin1String iosDeviceTypeIdentifierKey = QLatin1String("identifie
|
||||
IosSimulator::IosSimulator(Core::Id id)
|
||||
: IDevice(Core::Id(Constants::IOS_SIMULATOR_TYPE),
|
||||
IDevice::AutoDetected,
|
||||
IDevice::Emulator,
|
||||
id),
|
||||
m_lastPort(Constants::IOS_SIMULATOR_PORT_START)
|
||||
{
|
||||
setMachineType(IDevice::Emulator);
|
||||
setDisplayName(QCoreApplication::translate("Ios::Internal::IosSimulator", "iOS Simulator"));
|
||||
setDeviceState(DeviceReadyToUse);
|
||||
}
|
||||
|
||||
IosSimulator::IosSimulator()
|
||||
: IDevice(Core::Id(Constants::IOS_SIMULATOR_TYPE),
|
||||
IDevice::AutoDetected,
|
||||
IDevice::Emulator,
|
||||
Core::Id(Constants::IOS_SIMULATOR_DEVICE_ID)),
|
||||
IDevice::AutoDetected,
|
||||
Core::Id(Constants::IOS_SIMULATOR_DEVICE_ID)),
|
||||
m_lastPort(Constants::IOS_SIMULATOR_PORT_START)
|
||||
{
|
||||
setMachineType(IDevice::Emulator);
|
||||
setDisplayName(QCoreApplication::translate("Ios::Internal::IosSimulator", "iOS Simulator"));
|
||||
setDeviceState(DeviceReadyToUse);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user