diff --git a/src/plugins/clangtools/clangtool.cpp b/src/plugins/clangtools/clangtool.cpp index 2a25de2930a..b719ab6fd00 100644 --- a/src/plugins/clangtools/clangtool.cpp +++ b/src/plugins/clangtools/clangtool.cpp @@ -1013,7 +1013,7 @@ DiagnosticItem *ClangTool::diagnosticItem(const QModelIndex &index) const void ClangTool::showOutputPane() { - ProjectExplorerPlugin::showOutputPaneForRunControl(m_runControl); + m_runControl->showOutputPane(); } void ClangTool::reset() diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 3914c805952..e9bd1b51205 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -2501,11 +2501,6 @@ void ProjectExplorerPlugin::startRunControl(RunControl *runControl) dd->startRunControl(runControl); } -void ProjectExplorerPlugin::showOutputPaneForRunControl(RunControl *runControl) -{ - appOutputPane().showOutputPaneForRunControl(runControl); -} - static HandleIncludeGuards canTryToRenameIncludeGuards(const Node *node) { return node->asFileNode() && node->asFileNode()->fileType() == FileType::Header diff --git a/src/plugins/projectexplorer/projectexplorer.h b/src/plugins/projectexplorer/projectexplorer.h index aebb14f8d25..e35dd4442b4 100644 --- a/src/plugins/projectexplorer/projectexplorer.h +++ b/src/plugins/projectexplorer/projectexplorer.h @@ -117,7 +117,6 @@ public: static const QList customParsers(); static void startRunControl(RunControl *runControl); - static void showOutputPaneForRunControl(RunControl *runControl); static Utils::FilePairs renameFiles( const QList> &nodesAndNewFilePaths); diff --git a/src/plugins/projectexplorer/runcontrol.cpp b/src/plugins/projectexplorer/runcontrol.cpp index 9a0893737c8..faffb2e0811 100644 --- a/src/plugins/projectexplorer/runcontrol.cpp +++ b/src/plugins/projectexplorer/runcontrol.cpp @@ -701,6 +701,11 @@ QUrl RunControl::workerChannel() const return d->workerChannel; } +void RunControl::showOutputPane() +{ + appOutputPane().showOutputPaneForRunControl(this); +} + void RunControlPrivate::continueStart() { checkState(RunControlState::Starting); diff --git a/src/plugins/projectexplorer/runcontrol.h b/src/plugins/projectexplorer/runcontrol.h index 3c3cd34ae8d..da5a3716634 100644 --- a/src/plugins/projectexplorer/runcontrol.h +++ b/src/plugins/projectexplorer/runcontrol.h @@ -257,6 +257,8 @@ public: void requestWorkerChannel(); QUrl workerChannel() const; + void showOutputPane(); + signals: void appendMessage(const QString &msg, Utils::OutputFormat format); void aboutToStart();