aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/appoutputpane.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2021-11-25 13:57:38 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2021-11-26 15:43:46 +0000
commit0eaba469cf08e8496877e6bbb54d7e096ac8c550 (patch)
treecc4015f572535cc4e7d529ff1f5f6a32b32ebfd3 /src/plugins/projectexplorer/appoutputpane.cpp
parent304e5c755299ca723fa61f829717c98ecfa0d25a (diff)
ProjectExplorer: Add "link back from issues" functionality
... to the app output pane. Change-Id: I3e11f63a42fb30ae4e40da50d5ba8143ce99cd65 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/appoutputpane.cpp')
-rw-r--r--src/plugins/projectexplorer/appoutputpane.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp
index 9a6d512bc3..c022e90e63 100644
--- a/src/plugins/projectexplorer/appoutputpane.cpp
+++ b/src/plugins/projectexplorer/appoutputpane.cpp
@@ -30,6 +30,7 @@
#include "projectexplorericons.h"
#include "runcontrol.h"
#include "session.h"
+#include "showoutputtaskhandler.h"
#include "windebuginterface.h"
#include <coreplugin/actionmanager/actionmanager.h>
@@ -170,8 +171,11 @@ AppOutputPane::AppOutputPane() :
m_stopButton(new QToolButton),
m_attachButton(new QToolButton),
m_settingsButton(new QToolButton),
- m_formatterWidget(new QWidget)
+ m_formatterWidget(new QWidget),
+ m_handler(new ShowOutputTaskHandler(this))
{
+ ExtensionSystem::PluginManager::addObject(m_handler);
+
setObjectName("AppOutputPane"); // Used in valgrind engine
loadSettings();
@@ -252,6 +256,8 @@ AppOutputPane::~AppOutputPane()
delete rt.runControl;
}
delete m_mainWidget;
+ ExtensionSystem::PluginManager::removeObject(m_handler);
+ delete m_handler;
}
int AppOutputPane::currentIndex() const
@@ -368,6 +374,21 @@ void AppOutputPane::updateFilter()
}
}
+const QList<Core::OutputWindow *> AppOutputPane::outputWindows() const
+{
+ QList<Core::OutputWindow *> windows;
+ for (const RunControlTab &tab : qAsConst(m_runControlTabs)) {
+ if (tab.window)
+ windows << tab.window;
+ }
+ return windows;
+}
+
+void AppOutputPane::ensureWindowVisible(Core::OutputWindow *ow)
+{
+ m_tabWidget->setCurrentWidget(ow);
+}
+
void AppOutputPane::createNewOutputWindow(RunControl *rc)
{
QTC_ASSERT(rc, return);