ProjectExplorer: Make Device::displayType a data member

Change-Id: If650f660e3b10bc28d575ded07a854f59be26f87
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-06-19 13:28:14 +02:00
parent e2d6c0bfea
commit f420788465
21 changed files with 31 additions and 66 deletions

View File

@@ -51,29 +51,19 @@ IosSimulator::IosSimulator(Core::Id id)
setType(Constants::IOS_SIMULATOR_TYPE);
setMachineType(IDevice::Emulator);
setDisplayName(QCoreApplication::translate("Ios::Internal::IosSimulator", "iOS Simulator"));
setDisplayType(QCoreApplication::translate("Ios::Internal::IosSimulator", "iOS Simulator"));
setDeviceState(DeviceReadyToUse);
}
IosSimulator::IosSimulator()
: m_lastPort(Constants::IOS_SIMULATOR_PORT_START)
{
setupId(IDevice::AutoDetected, Constants::IOS_SIMULATOR_DEVICE_ID);
setType(Constants::IOS_SIMULATOR_TYPE);
setMachineType(IDevice::Emulator);
setDisplayName(QCoreApplication::translate("Ios::Internal::IosSimulator", "iOS Simulator"));
setDeviceState(DeviceReadyToUse);
}
: IosSimulator(Constants::IOS_SIMULATOR_DEVICE_ID)
{}
IDevice::DeviceInfo IosSimulator::deviceInformation() const
{
return IDevice::DeviceInfo();
}
QString IosSimulator::displayType() const
{
return QCoreApplication::translate("Ios::Internal::IosSimulator", "iOS Simulator");
}
IDeviceWidget *IosSimulator::createWidget()
{
return nullptr;