From cca8d6f796f1942e1044ef13c54fc7e8df8f6230 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 14 Oct 2016 16:09:16 +0200 Subject: [PATCH] CppEditor: Native dir separators in ResourcePreviewHoverHandler Change-Id: I83aaf5a0aff5f679395801ecaccad46a8ff7acb3 Reviewed-by: David Schulz --- src/plugins/cppeditor/resourcepreviewhoverhandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/cppeditor/resourcepreviewhoverhandler.cpp b/src/plugins/cppeditor/resourcepreviewhoverhandler.cpp index fdb41c40f7a..7ef01db7520 100644 --- a/src/plugins/cppeditor/resourcepreviewhoverhandler.cpp +++ b/src/plugins/cppeditor/resourcepreviewhoverhandler.cpp @@ -200,7 +200,9 @@ QString ResourcePreviewHoverHandler::makeTooltip() const if (mimeType.name().startsWith("image", Qt::CaseInsensitive)) ret += QString("
").arg(m_resPath); - ret += QString("%2").arg(m_resPath).arg(m_resPath); + ret += QString("%2") + .arg(m_resPath) + .arg(QDir::toNativeSeparators(m_resPath)); } return ret; }