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>
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);
}
#endif
-bool QFileSystemEngine::isCaseSensitive()
-{
- return true;
-}
-
//static
QFileSystemEntry QFileSystemEngine::getLinkTarget(const QFileSystemEntry &link, QFileSystemMetaData &data)
{
data.lastWriteTime_ = FILETIME();
}
-bool QFileSystemEngine::isCaseSensitive()
-{
- return false;
-}
-
//static
QFileSystemEntry QFileSystemEngine::getLinkTarget(const QFileSystemEntry &link,
QFileSystemMetaData &data)