MCPcopy Create free account
hub / github.com/KDE/kdevelop / makeUnique

Function makeUnique

kdevplatform/shell/runcontroller.cpp:967–978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965}
966
967QString makeUnique(const QString& name)
968{
969 if(launcherNameExists(name)) {
970 for(int i=2; ; i++) {
971 QString proposed = QStringLiteral("%1 (%2)").arg(name).arg(i);
972 if(!launcherNameExists(proposed)) {
973 return proposed;
974 }
975 }
976 }
977 return name;
978}
979
980ILaunchConfiguration* RunController::createLaunchConfiguration ( LaunchConfigurationType* type,
981 const QPair<QString,QString>& launcher,

Callers 1

Calls 1

launcherNameExistsFunction · 0.85

Tested by

no test coverage detected