ProjectExplorer: De-qobject-ify RunConfigurationFactory

Some translations moved over to the corresponding RunConfigurations,
one setParent() replaced by direct deletion.

Change-Id: Ib5e527b71353a6be70b332ac2dfd2f5cd2499a60
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2018-04-06 14:13:07 +02:00
parent eea6a7c3b3
commit 0df9d6dda9
13 changed files with 13 additions and 25 deletions

View File

@@ -466,10 +466,10 @@ QString RunConfigurationFactory::decoratedTargetName(const QString targetName, T
if (IDevice::ConstPtr dev = DeviceKitInformation::device(target->kit())) {
if (displayName.isEmpty()) {
//: Shown in Run configuration if no executable is given, %1 is device name
displayName = tr("Run on %1").arg(dev->displayName());
displayName = RunConfiguration::tr("Run on %1").arg(dev->displayName());
} else {
//: Shown in Run configuration, Add menu: "name of runnable (on device name)"
displayName = tr("%1 (on %2)").arg(displayName, dev->displayName());
displayName = RunConfiguration::tr("%1 (on %2)").arg(displayName, dev->displayName());
}
}
}