ProjectExplorer: Move output pane raising to RunControl

Easier to discover there.

Change-Id: Iba549379254aeb253a0b029eb1b5c02cc647c742
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2024-12-20 10:42:01 +01:00
parent b5d1d7641a
commit e12a9242df
5 changed files with 8 additions and 7 deletions

View File

@@ -1013,7 +1013,7 @@ DiagnosticItem *ClangTool::diagnosticItem(const QModelIndex &index) const
void ClangTool::showOutputPane()
{
ProjectExplorerPlugin::showOutputPaneForRunControl(m_runControl);
m_runControl->showOutputPane();
}
void ClangTool::reset()

View File

@@ -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

View File

@@ -117,7 +117,6 @@ public:
static const QList<CustomParserSettings> customParsers();
static void startRunControl(RunControl *runControl);
static void showOutputPaneForRunControl(RunControl *runControl);
static Utils::FilePairs renameFiles(
const QList<std::pair<Node *, Utils::FilePath>> &nodesAndNewFilePaths);

View File

@@ -701,6 +701,11 @@ QUrl RunControl::workerChannel() const
return d->workerChannel;
}
void RunControl::showOutputPane()
{
appOutputPane().showOutputPaneForRunControl(this);
}
void RunControlPrivate::continueStart()
{
checkState(RunControlState::Starting);

View File

@@ -257,6 +257,8 @@ public:
void requestWorkerChannel();
QUrl workerChannel() const;
void showOutputPane();
signals:
void appendMessage(const QString &msg, Utils::OutputFormat format);
void aboutToStart();