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:
hjk
2019-01-14 15:27:52 +01:00
parent ae0d895d96
commit 75bce4332d
19 changed files with 51 additions and 46 deletions

View File

@@ -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);
}