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>
Thu, 14 Nov 2013 13:22:26 +0000 (14:22 +0100)
commit0bf84aa7873edd7bb411fabb94481b03d1501c68
treee8c5c11b061bef9670bcd86a8cc7c35e15a8e884
parent6ca1df22ef42ffbb86133313b86f9027c5f9de90
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
Change-Id: I7b1dbddb73feb34491ece5a0765a67354b937f43
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
src/assistant/help/qhelpdbreader.cpp