forked from qt-creator/qt-creator
MacroExpander: Fix Path and FilePath on Windows
They should have / separator.
Amends commit 4fbc56d453
.
Change-Id: I7218c345b271360f24c03aea5ee62be05342afe0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
71f9e536c5
commit
f5cccab95b
@@ -380,13 +380,13 @@ void MacroExpander::registerFileVariables(const QByteArray &prefix,
|
||||
registerVariable(
|
||||
prefix + kFilePathPostfix,
|
||||
Tr::tr("%1: Full path including file name.").arg(heading),
|
||||
[base] { return base().toUserOutput(); },
|
||||
[base] { return base().path(); },
|
||||
visibleInChooser);
|
||||
|
||||
registerVariable(
|
||||
prefix + kPathPostfix,
|
||||
Tr::tr("%1: Full path excluding file name.").arg(heading),
|
||||
[base] { return base().parentDir().toUserOutput(); },
|
||||
[base] { return base().parentDir().path(); },
|
||||
visibleInChooser);
|
||||
|
||||
registerVariable(
|
||||
|
Reference in New Issue
Block a user