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:
@@ -372,7 +372,7 @@ void MacroExpander::registerFileVariables(const QByteArray &prefix,
|
||||
|
||||
registerVariable(prefix + kFileNamePostfix,
|
||||
tr("%1: File name without path.").arg(heading),
|
||||
[base]() -> QString { QString tmp = base(); return tmp.isEmpty() ? QString() : QFileInfo(tmp).fileName(); },
|
||||
[base]() -> QString { QString tmp = base(); return tmp.isEmpty() ? QString() : Utils::FileName::fromString(tmp).fileName(); },
|
||||
visibleInChooser);
|
||||
|
||||
registerVariable(prefix + kFileBaseNamePostfix,
|
||||
|
||||
Reference in New Issue
Block a user