AnalyzerManager: Export switching to analyzer mode

This commit is contained in:
Kai Koehne
2011-04-04 15:00:18 +02:00
parent e5679e8a95
commit 02ea914426
2 changed files with 10 additions and 4 deletions

View File

@@ -506,10 +506,8 @@ void AnalyzerManager::AnalyzerManagerPrivate::startTool()
{ {
QTC_ASSERT(q->currentTool(), return); QTC_ASSERT(q->currentTool(), return);
// make sure our mode is shown // make sure mode is shown
m_outputpane->popup(); q->showMode();
if (m_mode)
ModeManager::instance()->activateMode(m_mode->id());
ProjectExplorer::ProjectExplorerPlugin *pe = ProjectExplorer::ProjectExplorerPlugin::instance(); ProjectExplorer::ProjectExplorerPlugin *pe = ProjectExplorer::ProjectExplorerPlugin::instance();
@@ -882,4 +880,11 @@ AnalyzerRunControl *AnalyzerManager::createAnalyzer(const AnalyzerStartParameter
return d->m_runControlFactory->create(sp, rc); return d->m_runControlFactory->create(sp, rc);
} }
void AnalyzerManager::showMode()
{
if (d->m_mode)
ModeManager::instance()->activateMode(d->m_mode->id());
d->m_outputpane->popup();
}
#include "analyzermanager.moc" #include "analyzermanager.moc"

View File

@@ -100,6 +100,7 @@ public:
// Used by Maemo analyzer support. // Used by Maemo analyzer support.
AnalyzerRunControl *createAnalyzer(const AnalyzerStartParameters &sp, AnalyzerRunControl *createAnalyzer(const AnalyzerStartParameters &sp,
ProjectExplorer::RunConfiguration *rc = 0); ProjectExplorer::RunConfiguration *rc = 0);
void showMode();
public slots: public slots:
void startTool(); void startTool();