Commit 2029199f authored by Eike Ziller's avatar Eike Ziller Committed by hjk

Fix action ids of analyzer tools.

Change-Id: I7ea034b39e3b44eb58564a835034c17f9cfe61c1
Reviewed-on: http://codereview.qt.nokia.com/3476Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 102860f2
......@@ -51,9 +51,15 @@ QByteArray IAnalyzerTool::defaultMenuGroup(StartMode mode)
QByteArray IAnalyzerTool::defaultActionId(const IAnalyzerTool *tool, StartMode mode)
{
QByteArray id = tool->id();
if (mode == StartRemote)
return "Action." + id + ".RemoteStart." + QByteArray::number(mode);
return "Action." + id + ".LocalStart." + QByteArray::number(mode);
switch (mode) {
case Analyzer::StartLocal:
return "Analyzer." + id + ".Local";
case Analyzer::StartRemote:
return "Analyzer." + id + ".Remote";
case Analyzer::StartQml:
return "Analyzer." + id + ".Qml";
}
return QByteArray();
}
QString IAnalyzerTool::defaultActionName(const IAnalyzerTool *tool, StartMode mode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment