Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ProjectExplorer: Add note about forwarding environment to build engine
  • Loading branch information
martyone committed Aug 13, 2018
1 parent f625f52 commit 8ce8c5e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/plugins/projectexplorer/buildenvironmentwidget.cpp
Expand Up @@ -28,8 +28,12 @@
#include "buildconfiguration.h"
#include "environmentwidget.h"

#include <coreplugin/icore.h>
#include <projectexplorer/target.h>
#include <mer/merconstants.h>
#include <utils/utilsicons.h>

#include <QLabel>
#include <QVBoxLayout>
#include <QCheckBox>

Expand All @@ -40,6 +44,25 @@ BuildEnvironmentWidget::BuildEnvironmentWidget(BuildConfiguration *bc) :
{
auto vbox = new QVBoxLayout(this);
vbox->setMargin(0);

auto filterInfoHBox = new QHBoxLayout;
filterInfoHBox->setSpacing(6);

QLabel *filterInfoIcon = new QLabel(this);
filterInfoIcon->setPixmap(Utils::Icons::INFO.pixmap());
filterInfoHBox->addWidget(filterInfoIcon);

QLabel *filterInfoLabel = new QLabel(this);
filterInfoLabel->setWordWrap(true);
filterInfoLabel->setText(tr("Not all variables will be forwarded to a Sailfish OS build engine. "
"<a href='environment-filter'>Configure…</a>"));
filterInfoLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
connect(filterInfoLabel, &QLabel::linkActivated, [] {
Core::ICore::showOptionsDialog(Mer::Constants::MER_GENERAL_OPTIONS_ID, Core::ICore::dialogParent());
});
filterInfoHBox->addWidget(filterInfoLabel, 1);
vbox->addItem(filterInfoHBox);

m_clearSystemEnvironmentCheckBox = new QCheckBox(this);
m_clearSystemEnvironmentCheckBox->setText(tr("Clear system environment"));

Expand Down

0 comments on commit 8ce8c5e

Please sign in to comment.