From f591018f78752a28b5055a395ce74dff57d7f861 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 28 Oct 2024 12:24:34 +0100 Subject: [PATCH] QmlDesigner: Use correct path separators on Windows Task-number: QDS-13703 Change-Id: I1bf3f4dd7ede1c2d5649a8a19dec3d3d71a4be82 Reviewed-by: Tim Jenssen (cherry picked from commit 7b532499eea5ebf1f78e906c60cd8e57f4bf1ae0) --- src/plugins/studiowelcome/studiowelcomeplugin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp index 7878ba1c963..b873f76771a 100644 --- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp +++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp @@ -481,7 +481,10 @@ QVariant ProjectModel::data(const QModelIndex &index, int role) const case FilePathRole: return data.filePath.toVariant(); case PrettyFilePathRole: - return data.filePath.absolutePath().withTildeHomePath(); + if (Utils::HostOsInfo::isWindowsHost()) + return data.filePath.absolutePath().nativePath(); + else + return data.filePath.absolutePath().withTildeHomePath(); case PreviewUrl: return QVariant( QStringLiteral("image://project_preview/")