Analyzer: Move towards less global state

Make startTool() explicit as selectAction(Id)  + startAction(Id).

Change-Id: I695112bd8419021a781234121a55440b5dc381be
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
This commit is contained in:
hjk
2015-06-22 18:08:44 +02:00
parent e7789de28c
commit ee5abe6bfc
4 changed files with 15 additions and 18 deletions

View File

@@ -891,8 +891,7 @@ void CallgrindToolPrivate::handleShowCostsOfFunction()
m_toggleCollectFunction = qualifiedFunctionName + QLatin1String("()");
AnalyzerManager::selectTool(CallgrindLocalActionId);
AnalyzerManager::startTool();
AnalyzerManager::selectAction(CallgrindLocalActionId, /* alsoRunIt = */ true);
}
void CallgrindToolPrivate::slotRequestDump()