Skip to content
Snippets Groups Projects
Commit 2029199f authored by Eike Ziller's avatar Eike Ziller Committed by hjk
Browse files

Fix action ids of analyzer tools.

Change-Id: I7ea034b39e3b44eb58564a835034c17f9cfe61c1
Reviewed-on: http://codereview.qt.nokia.com/3476


Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 102860f2
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment