forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user