forked from qt-creator/qt-creator
Analyzers: Various cleanups
Fallout after the demise of IAnalizerTool. Change-Id: I68f936ed5f2929dc4f09a408bdf6b0ea38e568ef Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -906,7 +906,7 @@ void CallgrindToolPrivate::handleShowCostsOfFunction()
|
||||
|
||||
m_toggleCollectFunction = qualifiedFunctionName + QLatin1String("()");
|
||||
|
||||
AnalyzerManager::selectTool(CallgrindToolId, StartLocal);
|
||||
AnalyzerManager::selectTool(CallgrindLocalActionId);
|
||||
AnalyzerManager::startTool();
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace Valgrind {
|
||||
namespace Internal {
|
||||
|
||||
const char CallgrindToolId[] = "Callgrind";
|
||||
const char CallgrindLocalActionId[] = "Callgrind.Local";
|
||||
const char CallgrindRemoteActionId[] = "Callgrind.Remote";
|
||||
|
||||
class CallgrindToolPrivate;
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ bool ValgrindPlugin::initialize(const QStringList &, QString *)
|
||||
AnalyzerManager::addAction(action);
|
||||
|
||||
action = new AnalyzerAction(this);
|
||||
action->setActionId("Callgrind.Local");
|
||||
action->setActionId(CallgrindLocalActionId);
|
||||
action->setToolId(CallgrindToolId);
|
||||
action->setWidgetCreator(cgWidgetCreator);
|
||||
action->setRunControlCreator(cgRunControlCreator);
|
||||
@@ -206,7 +206,7 @@ bool ValgrindPlugin::initialize(const QStringList &, QString *)
|
||||
AnalyzerManager::addAction(action);
|
||||
|
||||
action = new AnalyzerAction(this);
|
||||
action->setActionId("Callgrind.Remote");
|
||||
action->setActionId(CallgrindRemoteActionId);
|
||||
action->setToolId(CallgrindToolId);
|
||||
action->setWidgetCreator(cgWidgetCreator);
|
||||
action->setRunControlCreator(cgRunControlCreator);
|
||||
|
||||
Reference in New Issue
Block a user