forked from qt-creator/qt-creator
Analyzer: Move tool startup code closer to the action setup
The code sharing in the base was along a somewhat unfortunate boundary. Moving it into the only user also removes some of the wrong local/remote separation. Change-Id: I0be9636ea448d123f9f5105a52d56f47ff7871c3 Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
This commit is contained in:
@@ -558,24 +558,6 @@ AnalyzerRunControl *CallgrindToolPrivate::createRunControl(const AnalyzerStartPa
|
||||
return rc;
|
||||
}
|
||||
|
||||
void CallgrindTool::startLocalTool()
|
||||
{
|
||||
if (checkForLocalStart(ReleaseMode)) {
|
||||
ProjectExplorerPlugin::runStartupProject(CallgrindRunMode);
|
||||
d->setBusyCursor(true);
|
||||
}
|
||||
}
|
||||
|
||||
void CallgrindTool::startRemoteTool()
|
||||
{
|
||||
AnalyzerStartParameters sp;
|
||||
if (checkForRemoteStart(&sp)) {
|
||||
AnalyzerRunControl *rc = createRunControl(sp, 0);
|
||||
ProjectExplorerPlugin::startRunControl(rc, CallgrindRunMode);
|
||||
d->setBusyCursor(true);
|
||||
}
|
||||
}
|
||||
|
||||
void CallgrindTool::handleShowCostsOfFunction()
|
||||
{
|
||||
d->handleShowCostsOfFunction();
|
||||
|
||||
Reference in New Issue
Block a user