Make sure .qch file is opened read-only
authorKai Koehne <kai.koehne@digia.com>
Wed, 13 Nov 2013 15:33:51 +0000 (16:33 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 19 Nov 2013 13:03:35 +0000 (14:03 +0100)
commit67b2f9a474d320bafa8cd21de129ef2cc138bebe
tree6f3969b3ca0e80d1c84134b6a1abf537c345138b
parent15ecf1ee9e30a8911546969e76d53eda1b6a78af
Make sure .qch file is opened read-only

So far qsqlite tried to open the file first read/write, and falling back
to read access only if this fails. This has resulted in excessively long
loading times e.g. on Windows XP.

Task-number: QTCREATORBUG-10697

(cherry-picked from commit 0bf84aa7873edd7bb411fabb94481b03d1501c68 in
qttools.git)

Change-Id: I94be15e2d7c5845bcadf6b32e54462a7c1bcb98a
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
tools/assistant/lib/qhelpdbreader.cpp