2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2016-06-16 14:23:22 +02:00
|
|
|
|
|
|
|
|
#include "environmentdialog.h"
|
|
|
|
|
|
2022-05-25 05:44:45 +02:00
|
|
|
#include "environment.h"
|
2016-06-16 14:23:22 +02:00
|
|
|
|
|
|
|
|
namespace Utils {
|
|
|
|
|
|
2022-08-26 10:30:00 +02:00
|
|
|
std::optional<EnvironmentItems> EnvironmentDialog::getEnvironmentItems(
|
2019-05-07 16:51:22 +02:00
|
|
|
QWidget *parent, const EnvironmentItems &initial, const QString &placeholderText, Polisher polisher)
|
2016-06-16 14:23:22 +02:00
|
|
|
{
|
2019-05-07 16:51:22 +02:00
|
|
|
return getNameValueItems(
|
|
|
|
|
parent,
|
|
|
|
|
initial,
|
|
|
|
|
placeholderText,
|
|
|
|
|
polisher,
|
|
|
|
|
tr("Edit Environment"),
|
|
|
|
|
tr("Enter one environment variable per line.\n"
|
|
|
|
|
"To set or change a variable, use VARIABLE=VALUE.\n"
|
2021-07-12 11:50:48 +02:00
|
|
|
"To append to a variable, use VARIABLE+=VALUE.\n"
|
|
|
|
|
"To prepend to a variable, use VARIABLE=+VALUE.\n"
|
2019-05-07 16:51:22 +02:00
|
|
|
"Existing variables can be referenced in a VALUE with ${OTHER}.\n"
|
2019-07-09 17:41:30 +02:00
|
|
|
"To clear a variable, put its name on a line with nothing else on it.\n"
|
2020-04-02 22:49:05 +02:00
|
|
|
"To disable a variable, prefix the line with \"#\"."));
|
2016-06-16 14:23:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Utils
|