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:
@@ -448,12 +448,12 @@ static inline QString formatArguments(const QStringList &args)
|
||||
if (i)
|
||||
str << ' ';
|
||||
if (arg.startsWith(QString::fromLatin1(passwordOptionC) + '=')) {
|
||||
str << QtcProcess::quoteArg("--password=********");
|
||||
str << ProcessArgs::quoteArg("--password=********");
|
||||
continue;
|
||||
}
|
||||
str << QtcProcess::quoteArg(arg);
|
||||
str << ProcessArgs::quoteArg(arg);
|
||||
if (arg == passwordOptionC) {
|
||||
str << ' ' << QtcProcess::quoteArg("********");
|
||||
str << ' ' << ProcessArgs::quoteArg("********");
|
||||
i++;
|
||||
}
|
||||
}
|
||||
@@ -463,7 +463,7 @@ static inline QString formatArguments(const QStringList &args)
|
||||
QString VcsOutputWindow::msgExecutionLogEntry(const QString &workingDir, const CommandLine &command)
|
||||
{
|
||||
const QString args = formatArguments(command.splitArguments());
|
||||
const QString nativeExecutable = QtcProcess::quoteArg(command.executable().toUserOutput());
|
||||
const QString nativeExecutable = ProcessArgs::quoteArg(command.executable().toUserOutput());
|
||||
if (workingDir.isEmpty())
|
||||
return tr("Running: %1 %2").arg(nativeExecutable, args) + '\n';
|
||||
return tr("Running in %1: %2 %3").
|
||||
|
||||
Reference in New Issue
Block a user