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:
Orgad Shaneh
2023-04-18 18:01:27 +03:00
committed by Orgad Shaneh
parent 71f9e536c5
commit f5cccab95b

View File

@@ -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(