summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfileinfo_p.h
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2010-01-26 17:26:48 +0100
committerJoão Abecasis <joao@trolltech.com>2010-01-26 17:26:48 +0100
commit3a5eb87965b60a3e249a16dc48cb06f4759dfb1b (patch)
treeb7970d05d871898e5933b833bc2cbc61df8151fe /src/corelib/io/qfileinfo_p.h
parent95f0dbd76f419ebc80e27f184d5e1199e91de4b7 (diff)
QFileInfo: Don't re-stat files, when in caching mode
Separated testing for permissions flags, in order to speedup QFileInfo on Windows with qt_ntfs_permission_lookup flag turned on (especially on network shares). In QFileInfoPrivate::getFileFlags, avoid multiple calls to the engine, by concatenating all requests. Merge-request: 446 Reviewed-by: João Abecasis <joao@trolltech.com>
Diffstat (limited to 'src/corelib/io/qfileinfo_p.h')
-rw-r--r--src/corelib/io/qfileinfo_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfileinfo_p.h b/src/corelib/io/qfileinfo_p.h
index 7f8ab4e44a..8e00909969 100644
--- a/src/corelib/io/qfileinfo_p.h
+++ b/src/corelib/io/qfileinfo_p.h
@@ -78,7 +78,7 @@ public:
enum { CachedFileFlags=0x01, CachedLinkTypeFlag=0x02, CachedBundleTypeFlag=0x04,
CachedMTime=0x10, CachedCTime=0x20, CachedATime=0x40,
- CachedSize =0x08 };
+ CachedSize =0x08, CachedPerms=0x80 };
struct Data {
inline Data()
: ref(1), fileEngine(0),