summaryrefslogtreecommitdiff
path: root/src/libs/utils/dropsupport.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2015-09-01 15:59:27 +0200
committerEike Ziller <eike.ziller@theqtcompany.com>2015-09-10 11:46:43 +0000
commitc87d3e3f4e7f5b74cdea71115f298d4b01936ec9 (patch)
tree8b918131856f661930935318fdc5fbbbaafcb1ea /src/libs/utils/dropsupport.cpp
parentedfe837192012857d8c1ba070e7847d01dd047a0 (diff)
downloadqt-creator-c87d3e3f4e7f5b74cdea71115f298d4b01936ec9.tar.gz
Normalize file paths on OS X
On a case insensitive file system, we want to e.g. open 'foo.H' when switching between header and source from 'foo.cpp' if that is how the file appears on the file system. Since there doesn't seem to be a way to normalize the full path without resolving symlinks, do it for each path component in turn. Also add a header for the mac specific utility functions. Task-number: QTCREATORBUG-13507 Change-Id: I6cf51fed698d12ac56fa1ec051da1b893bb0b065 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/libs/utils/dropsupport.cpp')
-rw-r--r--src/libs/utils/dropsupport.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libs/utils/dropsupport.cpp b/src/libs/utils/dropsupport.cpp
index 6f325a175b..00fff64093 100644
--- a/src/libs/utils/dropsupport.cpp
+++ b/src/libs/utils/dropsupport.cpp
@@ -39,11 +39,7 @@
#ifdef Q_OS_OSX
// for file drops from Finder, working around QTBUG-40449
-namespace Utils {
-namespace Internal {
-extern QUrl filePathUrl(const QUrl &url);
-} // Internal
-} // Utils
+#include "fileutils_mac.h"
#endif
namespace Utils {