ProjectExplorer: Optionally show run environment in app output pane

Fixes: QTCREATORBUG-28427
Change-Id: I1022a377d3728ad5e91fa62514082110b86db9f4
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Christian Kandeler
2023-04-24 17:25:13 +02:00
parent 8903e7f387
commit 02d86516c7
8 changed files with 46 additions and 2 deletions

View File

@@ -298,6 +298,13 @@ CommandLine RunConfiguration::commandLine() const
return m_commandLineGetter();
}
bool RunConfiguration::isPrintEnvironmentEnabled() const
{
if (const auto envAspect = aspect<EnvironmentAspect>())
return envAspect->isPrintOnRunEnabled();
return false;
}
void RunConfiguration::setRunnableModifier(const RunnableModifier &runnableModifier)
{
m_runnableModifier = runnableModifier;