forked from qt-creator/qt-creator
Replace QFileInfo::fileName() with FileName::fileName()
Change-Id: I4852ff215abf25649fc5eac1e922ae901839ca3d Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user