forked from qt-creator/qt-creator
Utils: Do not add extra space for user display of command lines
... that do not have parameters. Change-Id: I2ea20267bc18826e4017a356f6bc13f4b0172f3c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -121,7 +121,10 @@ void CommandLine::addArgs(const QString &inArgs, RawType)
|
|||||||
|
|
||||||
QString CommandLine::toUserOutput() const
|
QString CommandLine::toUserOutput() const
|
||||||
{
|
{
|
||||||
return m_executable.toUserOutput() + ' ' + m_arguments;
|
QString res = m_executable.toUserOutput();
|
||||||
|
if (!m_arguments.isEmpty())
|
||||||
|
res += ' ' + m_arguments;
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList CommandLine::splitArguments(OsType osType) const
|
QStringList CommandLine::splitArguments(OsType osType) const
|
||||||
|
Reference in New Issue
Block a user