Core: Remove Core::Id(QByteArray) constructor

This was mostly used to disambiguate the char * and the QString
constructors.

Change-Id: Ib6923ef8e8c0e5d514a883e73aa001a1cd9fb534
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
hjk
2013-03-19 18:27:04 +01:00
parent 52575f1c62
commit fe29d6a8a3
19 changed files with 30 additions and 39 deletions

View File

@@ -47,14 +47,14 @@ Id IAnalyzerTool::defaultMenuGroup(StartMode mode)
Id IAnalyzerTool::defaultActionId(const IAnalyzerTool *tool, StartMode mode)
{
Id id = tool->id();
Id id = Id("Analyzer").withSuffix(tool->id().toString());
switch (mode) {
case StartLocal:
return Id(QByteArray("Analyzer." + id.name() + ".Local"));
return id.withSuffix(".Local");
case StartRemote:
return Id(QByteArray("Analyzer." + id.name() + ".Remote"));
return id.withSuffix(".Remote");
case StartQml:
return Id(QByteArray("Analyzer." + id.name() + ".Qml"));
return id.withSuffix(".Qml");
}
return Id();
}