forked from qt-creator/qt-creator
Utils: Move process arguments class out of QtcProcess
The main QtcProcess interface is nowadays a CommandLine, with no explicit references left to QtcProcess::Arguments and related static helper functions, so it only clutters the QtcProcess class interface So move these items out of QtcProcess, later potentially to a separate file pair. Change-Id: I45c300b656f5b30e2e2717232c855fdd97c2d1d7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -213,7 +213,7 @@ QWidget *IosDsymBuildStep::createConfigWidget()
|
||||
commandLineEdit->setText(command().toString());
|
||||
|
||||
auto argumentsTextEdit = new QPlainTextEdit(widget);
|
||||
argumentsTextEdit->setPlainText(Utils::QtcProcess::joinArgs(arguments()));
|
||||
argumentsTextEdit->setPlainText(Utils::ProcessArgs::joinArgs(arguments()));
|
||||
|
||||
auto argumentsLabel = new QLabel(tr("Arguments:"), widget);
|
||||
|
||||
@@ -238,7 +238,7 @@ QWidget *IosDsymBuildStep::createConfigWidget()
|
||||
|
||||
connect(argumentsTextEdit, &QPlainTextEdit::textChanged, this,
|
||||
[this, argumentsTextEdit, resetDefaultsButton, updateDetails] {
|
||||
setArguments(Utils::QtcProcess::splitArgs(argumentsTextEdit->toPlainText()));
|
||||
setArguments(Utils::ProcessArgs::splitArgs(argumentsTextEdit->toPlainText()));
|
||||
resetDefaultsButton->setEnabled(!isDefault());
|
||||
updateDetails();
|
||||
});
|
||||
@@ -255,7 +255,7 @@ QWidget *IosDsymBuildStep::createConfigWidget()
|
||||
setCommand(defaultCommand());
|
||||
setArguments(defaultArguments());
|
||||
commandLineEdit->setText(command().toString());
|
||||
argumentsTextEdit->setPlainText(Utils::QtcProcess::joinArgs(arguments()));
|
||||
argumentsTextEdit->setPlainText(Utils::ProcessArgs::joinArgs(arguments()));
|
||||
resetDefaultsButton->setEnabled(!isDefault());
|
||||
updateDetails();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user