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:
@@ -84,6 +84,7 @@ IosDevice::IosDevice()
|
||||
setupId(IDevice::AutoDetected, Constants::IOS_DEVICE_ID);
|
||||
setType(Constants::IOS_DEVICE_TYPE);
|
||||
setDisplayName(IosDevice::name());
|
||||
setDisplayType(QCoreApplication::translate("Ios::Internal::IosDevice", "iOS"));
|
||||
setMachineType(IDevice::Hardware);
|
||||
setDeviceState(DeviceDisconnected);
|
||||
Utils::PortList ports;
|
||||
@@ -98,6 +99,7 @@ IosDevice::IosDevice(const QString &uid)
|
||||
setupId(IDevice::AutoDetected, Core::Id(Constants::IOS_DEVICE_ID).withSuffix(uid));
|
||||
setType(Constants::IOS_DEVICE_TYPE);
|
||||
setDisplayName(IosDevice::name());
|
||||
setDisplayType(QCoreApplication::translate("Ios::Internal::IosDevice", "iOS"));
|
||||
setMachineType(IDevice::Hardware);
|
||||
setDeviceState(DeviceDisconnected);
|
||||
}
|
||||
@@ -116,11 +118,6 @@ IDevice::DeviceInfo IosDevice::deviceInformation() const
|
||||
return res;
|
||||
}
|
||||
|
||||
QString IosDevice::displayType() const
|
||||
{
|
||||
return QCoreApplication::translate("Ios::Internal::IosDevice", "iOS");
|
||||
}
|
||||
|
||||
IDeviceWidget *IosDevice::createWidget()
|
||||
{
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user