diff options
author | Liang Qi <liang.qi@qt.io> | 2019-01-18 15:57:09 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-01-18 15:57:09 +0100 |
commit | dd47bfb5f259617b9e79fc1210386a1f1d800d4c (patch) | |
tree | c6d04c7d0577de5d3256f2a48c5d45128cf2c340 /src/assistant/help/qhelpcollectionhandler.cpp | |
parent | a83e01ef571fa26e2b76dcfe33027da6f95cfb76 (diff) | |
parent | a7bac5437c59b53887c25b3c0d6ecf0689859c39 (diff) |
Merge remote-tracking branch 'origin/5.12' into dev
Conflicts:
.qmake.conf
src/assistant/help/qhelpcollectionhandler.cpp
Change-Id: If1408a5893bc9ade9088e01c00aab695eff131aa
Diffstat (limited to 'src/assistant/help/qhelpcollectionhandler.cpp')
-rw-r--r-- | src/assistant/help/qhelpcollectionhandler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/assistant/help/qhelpcollectionhandler.cpp b/src/assistant/help/qhelpcollectionhandler.cpp index 789e490ed..756861c1a 100644 --- a/src/assistant/help/qhelpcollectionhandler.cpp +++ b/src/assistant/help/qhelpcollectionhandler.cpp @@ -153,6 +153,9 @@ bool QHelpCollectionHandler::openCollectionFile() } } + if (m_readOnly) + return true; + m_query->exec(QLatin1String("PRAGMA synchronous=OFF")); m_query->exec(QLatin1String("PRAGMA cache_size=3000")); @@ -2319,4 +2322,9 @@ QStringList QHelpCollectionHandler::namespacesForFilter(const QString &filterNam return namespaceList; } +void QHelpCollectionHandler::setReadOnly(bool readOnly) +{ + m_readOnly = readOnly; +} + QT_END_NAMESPACE |