summaryrefslogtreecommitdiff
path: root/src/libs/utils/filecrumblabel.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2017-11-15 09:20:58 +0100
committerEike Ziller <eike.ziller@qt.io>2017-11-15 15:16:42 +0000
commit761505071d390ccd48de6482b06683cf1ab9109a (patch)
treed346331b3091d019a7955e986369d4c2c3c1deb1 /src/libs/utils/filecrumblabel.cpp
parent8f749e473ad2d88c3197a842369d6ca853fff5e4 (diff)
downloadqt-creator-761505071d390ccd48de6482b06683cf1ab9109a.tar.gz
Improve styling of crumble path in file system view
- Fix left alignment when wrapping over multiple lines. - Don't break lines before path separators - Add a separating line below Change-Id: I709fa3c6d12fa45a909ed6ca5c63cc5b877b2dc3 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/libs/utils/filecrumblabel.cpp')
-rw-r--r--src/libs/utils/filecrumblabel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/utils/filecrumblabel.cpp b/src/libs/utils/filecrumblabel.cpp
index e91a528685..8ea4ffde65 100644
--- a/src/libs/utils/filecrumblabel.cpp
+++ b/src/libs/utils/filecrumblabel.cpp
@@ -67,8 +67,8 @@ void FileCrumbLabel::setPath(const FileName &path)
}
current = current.parentDir();
}
- const auto pathSeparator = QLatin1String(HostOsInfo::isWindowsHost() ? " \\ " : " / ");
- const QString prefix = HostOsInfo::isWindowsHost() ? QString("&nbsp;\\ ") : QString("&nbsp;/ ");
+ const auto pathSeparator = QLatin1String(HostOsInfo::isWindowsHost() ? "&nbsp;\\ " : "&nbsp;/ ");
+ const QString prefix = HostOsInfo::isWindowsHost() ? QString("\\ ") : QString("/ ");
setText(prefix + links.join(pathSeparator));
}