FileUtils: Add static method to construct FileNames from Latin1

Change-Id: Ida513eb0537e2ef0c55887d0df21de956e85e983
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Tobias Hunger
2014-02-07 15:46:36 +01:00
parent a19353674c
commit a8ea31bf09
14 changed files with 54 additions and 46 deletions

View File

@@ -533,6 +533,13 @@ FileName FileName::fromString(const QString &filename)
return FileName(filename);
}
/// Constructs a FileName from \a fileName
/// \a fileName is not checked for validity.
FileName FileName::fromLatin1(const QByteArray &filename)
{
return FileName(QString::fromLatin1(filename));
}
/// Constructs a FileName from \a fileName
/// \a fileName is only passed through QDir::cleanPath
FileName FileName::fromUserInput(const QString &filename)