forked from qt-creator/qt-creator
AnalyzerManager: Export switching to analyzer mode
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user