forked from qt-creator/qt-creator
ProjectExplorer: Make Device::displayType a data member
Change-Id: If650f660e3b10bc28d575ded07a854f59be26f87 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user