Fix BC break with QAbstractFileEngine "mount points"
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Tue, 17 Jan 2012 19:51:39 +0000 (19:51 +0000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 25 Jan 2012 03:06:04 +0000 (04:06 +0100)
commit3864ad09d578210b52e5f58fca2ee8a1144f5be2
treed98f54d4f65aa8a6733be3788410ec5318615757
parent3aef11802c5f4ca0f3bde121e1704594f775bc33
Fix BC break with QAbstractFileEngine "mount points"

File system cached metadata can't be trusted when custom file engines
are in use, because the custom file engine may want to override the
metadata. (e.g. present an archive file as a directory)

Therefore, check if a file engine should be instantiated for each
result in QDirIterator. This is a fast check if no custom file engines
are registered.
When pushing a directory (using QDirIterator::SubDirectories) the
file engine needs to be instantiated also.

Task-number: QTBUG-23688
Task-number: ou1cimx1#965023
Change-Id: I0114c8df6258535553783a2486131c4194926649
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
src/corelib/io/qfileinfo_p.h
src/corelib/io/qfilesystemiterator_symbian.cpp
tests/auto/qabstractfileengine/tst_qabstractfileengine.cpp