summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfilesystemengine_p.h
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2012-02-05 00:46:08 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-06 16:48:22 +0100
commiteeb9861a91bcb5b5122e26012587bbcd619da2d4 (patch)
tree3c89c1567c05313299e8255807047da6c09e623d /src/corelib/io/qfilesystemengine_p.h
parenteffbc9edc57fd8a2e40729a76004fe4f5fafcf49 (diff)
Inline information about FS case sensitivity
As far as Qt is concerned, this information is static and depends only on the platform. By moving the definition to the header we allow the information to be directly used by the compiler, forgoing the need to export the function to interested users. Change-Id: I43de585391d41204d3c3560ac6e65e5a88aee11c Reviewed-by: Jonas Gastal <jgastal@profusion.mobi> Reviewed-by: Shane Kearns <ext-shane.2.kearns@nokia.com>
Diffstat (limited to 'src/corelib/io/qfilesystemengine_p.h')
-rw-r--r--src/corelib/io/qfilesystemengine_p.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/corelib/io/qfilesystemengine_p.h b/src/corelib/io/qfilesystemengine_p.h
index 6d60d77c33..17413d9c76 100644
--- a/src/corelib/io/qfilesystemengine_p.h
+++ b/src/corelib/io/qfilesystemengine_p.h
@@ -63,7 +63,14 @@ QT_BEGIN_NAMESPACE
class QFileSystemEngine
{
public:
- static bool isCaseSensitive();
+ static bool isCaseSensitive()
+ {
+#ifndef Q_OS_WIN
+ return true;
+#else
+ return false;
+#endif
+ }
static QFileSystemEntry getLinkTarget(const QFileSystemEntry &link, QFileSystemMetaData &data);
static QFileSystemEntry canonicalName(const QFileSystemEntry &entry, QFileSystemMetaData &data);