Analyzer: Remove IAnalyzerTool::m_toolMode member

It's always known from the context when needed.

Change-Id: Ibf314dfb779190e89b775acab784ed71acff2c83
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-02-18 12:01:05 +01:00
parent e058dbe775
commit 64be0004a6
5 changed files with 7 additions and 27 deletions

View File

@@ -502,7 +502,6 @@ CallgrindTool::CallgrindTool(QObject *parent)
{
d = new CallgrindToolPrivate(this);
setObjectName(QLatin1String("CallgrindTool"));
setToolMode(ReleaseMode);
connect(EditorManager::instance(), &EditorManager::editorOpened,
d, &CallgrindToolPrivate::editorOpened);
@@ -560,7 +559,7 @@ AnalyzerRunControl *CallgrindToolPrivate::createRunControl(const AnalyzerStartPa
void CallgrindTool::startTool(StartMode mode)
{
if (mode == StartLocal)
startLocalTool(CallgrindRunMode);
startLocalTool(ReleaseMode, CallgrindRunMode);
if (mode == StartRemote)
startRemoteTool(CallgrindRunMode);
d->setBusyCursor(true);