forked from qt-creator/qt-creator
Utils: Move CommandLine to fileutils.{cpp,h}
Causes less #include hassle when using downstream instead of command/argument pairs. Change-Id: I0fa0d016374df0b8e0a22f3786623652af684d36 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -1521,24 +1521,4 @@ QString QtcProcess::Arguments::toString() const
|
||||
return QtcProcess::joinArgs(m_unixArgs, OsTypeLinux);
|
||||
}
|
||||
|
||||
void CommandLine::addArg(const QString &arg)
|
||||
{
|
||||
QtcProcess::addArg(&m_arguments, arg);
|
||||
}
|
||||
|
||||
void CommandLine::addArgs(const QStringList &inArgs)
|
||||
{
|
||||
QtcProcess::addArgs(&m_arguments, inArgs);
|
||||
}
|
||||
|
||||
void CommandLine::addArgs(const QString &inArgs)
|
||||
{
|
||||
QtcProcess::addArgs(&m_arguments, inArgs);
|
||||
}
|
||||
|
||||
QString CommandLine::toUserOutput() const
|
||||
{
|
||||
return m_executable.toUserOutput() + ' ' + m_arguments;
|
||||
}
|
||||
|
||||
} // namespace Utils
|
||||
|
||||
Reference in New Issue
Block a user