forked from qt-creator/qt-creator
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:
@@ -1013,7 +1013,7 @@ DiagnosticItem *ClangTool::diagnosticItem(const QModelIndex &index) const
|
||||
|
||||
void ClangTool::showOutputPane()
|
||||
{
|
||||
ProjectExplorerPlugin::showOutputPaneForRunControl(m_runControl);
|
||||
m_runControl->showOutputPane();
|
||||
}
|
||||
|
||||
void ClangTool::reset()
|
||||
|
@@ -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
|
||||
|
@@ -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);
|
||||
|
@@ -701,6 +701,11 @@ QUrl RunControl::workerChannel() const
|
||||
return d->workerChannel;
|
||||
}
|
||||
|
||||
void RunControl::showOutputPane()
|
||||
{
|
||||
appOutputPane().showOutputPaneForRunControl(this);
|
||||
}
|
||||
|
||||
void RunControlPrivate::continueStart()
|
||||
{
|
||||
checkState(RunControlState::Starting);
|
||||
|
@@ -257,6 +257,8 @@ public:
|
||||
void requestWorkerChannel();
|
||||
QUrl workerChannel() const;
|
||||
|
||||
void showOutputPane();
|
||||
|
||||
signals:
|
||||
void appendMessage(const QString &msg, Utils::OutputFormat format);
|
||||
void aboutToStart();
|
||||
|
Reference in New Issue
Block a user