Utils: Add a CommandLine::splitArguments() convenience function

... and use it from within new SynchronousProcess functions
taking CommandLine arguments.

Change-Id: I5d7f83727cbb22f03b1a79b1645db95514c66033
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2019-06-05 12:53:22 +02:00
parent 046ab0b7a3
commit 772b48797d
4 changed files with 42 additions and 12 deletions

View File

@@ -95,6 +95,11 @@ QString CommandLine::toUserOutput() const
return m_executable.toUserOutput() + ' ' + m_arguments;
}
QStringList CommandLine::splitArguments(OsType osType) const
{
return QtcProcess::splitArgs(m_arguments, osType);
}
/*! \class Utils::FileUtils
\brief The FileUtils class contains file and directory related convenience