iOS: Unify translation of iOS-Device.

Change-Id: I01374545ec3882a1dc9b08adccf4632f38438efb
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
Friedemann Kleint
2013-11-04 15:08:41 +01:00
parent e8a4e9c230
commit fc1a209fe0
6 changed files with 15 additions and 18 deletions

View File

@@ -84,7 +84,7 @@ IosDevice::IosDevice()
IDevice::Hardware,
Constants::IOS_DEVICE_ID)
{
setDisplayName(QCoreApplication::translate("Ios::Internal::IosDevice", "iOS Device"));
setDisplayName(IosDevice::name());
setDeviceState(DeviceStateUnknown);
}
@@ -98,7 +98,7 @@ IosDevice::IosDevice(const QString &uid)
IDevice::Hardware,
Core::Id(Constants::IOS_DEVICE_ID).withSuffix(uid))
{
setDisplayName(QCoreApplication::translate("Ios::Internal::IosDevice", "iOS Device"));
setDisplayName(IosDevice::name());
setDeviceState(DeviceStateUnknown);
}
@@ -182,6 +182,12 @@ QString IosDevice::uniqueDeviceID() const
{
return id().suffixAfter(Core::Id(Constants::IOS_DEVICE_ID));
}
QString IosDevice::name()
{
return QCoreApplication::translate("Ios::Internal::IosDevice", "iOS Device");
}
/*
// add back?