analyzer: handle all possibilities to start qml profiler in QmlProfilerTool

Change-Id: I286bdc4dc3fbab2e784e72f47ff02644cc2899e5
Reviewed-on: http://codereview.qt.nokia.com/1096
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-07-04 19:11:08 +02:00
committed by hjk
parent 5418a137dd
commit a89158b887
5 changed files with 70 additions and 39 deletions

View File

@@ -450,7 +450,6 @@ void AnalyzerManagerPrivate::startLocalTool(IAnalyzerTool *tool, StartMode mode)
QTC_ASSERT(index >= 0, return);
QTC_ASSERT(index < m_tools.size(), return);
QTC_ASSERT(tool == m_currentTool, return);
QTC_ASSERT(mode == StartLocal, /**/);
// Make sure mode is shown.
q->showMode();
@@ -587,6 +586,7 @@ void AnalyzerManagerPrivate::selectAction(int index)
void AnalyzerManagerPrivate::selectAction(QAction *action)
{
AnalyzerManager::showMode();
selectTool(m_toolFromAction[action], m_modeFromAction[action]);
}