diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2018-04-21 11:18:19 +0200 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2018-05-03 09:43:44 +0000 |
commit | 83c562954546bef09104815e0fa42809460004d2 (patch) | |
tree | f9306b00bcb79845a1be94a957c591553eb3404c /src/libs/utils | |
parent | 43072e82d2daa109668edbc93fe4462ec9f1973e (diff) |
EnvironmentDialog: Add help text to make usage more obvious
Change-Id: I13e1397b14ab6f1288bcc0626f358b9722c47d50
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/libs/utils')
-rw-r--r-- | src/libs/utils/environmentdialog.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/libs/utils/environmentdialog.cpp b/src/libs/utils/environmentdialog.cpp index 5c4401af0d6..07e6155c7df 100644 --- a/src/libs/utils/environmentdialog.cpp +++ b/src/libs/utils/environmentdialog.cpp @@ -115,18 +115,22 @@ EnvironmentDialog::EnvironmentDialog(QWidget *parent) : setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); resize(640, 480); d->m_editor = new Internal::EnvironmentItemsWidget(this); - d->m_editor->setToolTip(tr("Enter one variable per line with the variable name " - "separated from the variable value by \"=\".<br>" - "Environment variables can be referenced with ${OTHER}.")); auto box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, this); connect(box, &QDialogButtonBox::accepted, this, &QDialog::accept); connect(box, &QDialogButtonBox::rejected, this, &QDialog::reject); + + auto helpLabel = new QLabel(this); + helpLabel->setText(tr("Enter one environment variable per line.\n" + "To set or change a variable, use VARIABLE=VALUE.\n" + "Existing variables can be referenced in a VALUE with ${OTHER}.\n" + "To clear a variable, put its name on a line with nothing else on it.")); + auto layout = new QVBoxLayout(this); - QLabel *label = new QLabel(this); - label->setText(tr("Change environment by assigning one environment variable per line:")); - layout->addWidget(label); layout->addWidget(d->m_editor); + layout->addWidget(helpLabel); + layout->addWidget(box); + setWindowTitle(tr("Edit Environment")); } |