Utils: Pass an optional OsType parameter to CommandLine::addArg

... and extend the idea to addArgs(list)

Change-Id: Ia5423ee5ab96835b4adc23b72749e9c13892ee83
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-06-04 10:55:37 +02:00
parent 0c3f4b0d85
commit c7e2dc97e1
2 changed files with 7 additions and 6 deletions

View File

@@ -137,8 +137,8 @@ public:
: m_executable(executable), m_arguments(arguments)
{}
void addArg(const QString &arg);
void addArgs(const QStringList &inArgs);
void addArg(const QString &arg, OsType osType = HostOsInfo::hostOs());
void addArgs(const QStringList &inArgs, OsType osType = HostOsInfo::hostOs());
void addArgs(const QString &inArgs);
QString toUserOutput() const;