Use Utils::FileName for various bits in QtVersion

Change-Id: I3afc3a4f2e0dd2671279c2d071779f1d7b277849
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Daniel Teske
2011-11-25 13:19:58 +01:00
parent c6936d9e80
commit f5d4287123
75 changed files with 356 additions and 358 deletions

View File

@@ -530,11 +530,24 @@ FileName FileName::relativeChildPath(const FileName &parent) const
}
/// Appends \a s, ensuring a / between the parts
void FileName::appendPath(const QString &s)
FileName &FileName::appendPath(const QString &s)
{
if (QString::endsWith(QLatin1Char('/')))
append(QLatin1Char('/'));
append(s);
return *this;
}
FileName &FileName::append(const QString &str)
{
QString::append(str);
return *this;
}
FileName &FileName::append(QChar str)
{
QString::append(str);
return *this;
}
} // namespace Utils