diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-01-10 23:40:32 +0200 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2015-01-29 11:15:43 +0000 |
commit | 8b5dcc13c539e755b67bfb6ae38553534c9b3d11 (patch) | |
tree | 6ece649b191598e412049646832a59ae096f850c /src/libs/utils/unixutils.cpp | |
parent | 6fd0d4ed339fe656bc68d7b31ba9d8e63955b12a (diff) |
Replace QFileInfo::fileName() with FileName::fileName()
Change-Id: I4852ff215abf25649fc5eac1e922ae901839ca3d
Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/libs/utils/unixutils.cpp')
-rw-r--r-- | src/libs/utils/unixutils.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/utils/unixutils.cpp b/src/libs/utils/unixutils.cpp index 237ce57c1c2..650f6a05b36 100644 --- a/src/libs/utils/unixutils.cpp +++ b/src/libs/utils/unixutils.cpp @@ -28,8 +28,9 @@ ** ****************************************************************************/ - #include "unixutils.h" +#include "fileutils.h" + #include <QSettings> #include <QFileInfo> #include <QCoreApplication> @@ -81,7 +82,7 @@ QString UnixUtils::substituteFileBrowserParameters(const QString &pre, const QSt } else if (c == QLatin1Char('f')) { s = QLatin1Char('"') + file + QLatin1Char('"'); } else if (c == QLatin1Char('n')) { - s = QLatin1Char('"') + QFileInfo(file).fileName() + QLatin1Char('"'); + s = QLatin1Char('"') + FileName::fromString(file).fileName() + QLatin1Char('"'); } else if (c == QLatin1Char('%')) { s = c; } else { |