forked from qt-creator/qt-creator
ProjectExplorer: Base IDevice::osType on a data member
Change-Id: I969563e6e62895a51fb4692c8eb0bab278f0ecae Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -86,6 +86,7 @@ IosDevice::IosDevice()
|
||||
setDefaultDisplayName(IosDevice::name());
|
||||
setDisplayType(QCoreApplication::translate("Ios::Internal::IosDevice", "iOS"));
|
||||
setMachineType(IDevice::Hardware);
|
||||
setOsType(Utils::OsTypeMac);
|
||||
setDeviceState(DeviceDisconnected);
|
||||
Utils::PortList ports;
|
||||
ports.addRange(Utils::Port(Constants::IOS_DEVICE_PORT_START),
|
||||
@@ -101,6 +102,7 @@ IosDevice::IosDevice(const QString &uid)
|
||||
setDefaultDisplayName(IosDevice::name());
|
||||
setDisplayType(QCoreApplication::translate("Ios::Internal::IosDevice", "iOS"));
|
||||
setMachineType(IDevice::Hardware);
|
||||
setOsType(Utils::OsTypeMac);
|
||||
setDeviceState(DeviceDisconnected);
|
||||
}
|
||||
|
||||
@@ -174,11 +176,6 @@ bool IosDevice::canAutoDetectPorts() const
|
||||
return true;
|
||||
}
|
||||
|
||||
Utils::OsType IosDevice::osType() const
|
||||
{
|
||||
return Utils::OsTypeMac;
|
||||
}
|
||||
|
||||
|
||||
// IosDeviceManager
|
||||
|
||||
|
||||
Reference in New Issue
Block a user