Valgrind: Simplify the popping code

It looks like runControl()->showOutputPane() is a good equivalent
to the hack with an introspection of the AppOutputPane object.

Change-Id: I6c4fe3bf2a797eac9ac454140bf78bb2eb278129
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2025-02-19 17:32:47 +01:00
parent 7a055e163d
commit cc4bf69d67

View File

@@ -7,12 +7,9 @@
#include "valgrindtr.h"
#include <coreplugin/icore.h>
#include <coreplugin/ioutputpane.h>
#include <coreplugin/progressmanager/futureprogress.h>
#include <coreplugin/progressmanager/progressmanager.h>
#include <extensionsystem/pluginmanager.h>
#include <projectexplorer/devicesupport/devicekitaspects.h>
#include <projectexplorer/devicesupport/idevice.h>
#include <projectexplorer/projectexplorericons.h>
@@ -140,10 +137,7 @@ void ValgrindToolRunner::receiveProcessError(const QString &errorString, Process
default:
break;
}
QObject *obj = ExtensionSystem::PluginManager::getObjectByName("AppOutputPane");
if (auto pane = qobject_cast<IOutputPane *>(obj))
pane->popup(IOutputPane::NoModeSwitch);
runControl()->showOutputPane();
}
} // Valgrid::Internal