summaryrefslogtreecommitdiffstats
path: root/src/assistant/help/qhelpenginecore.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2019-01-18 15:57:09 +0100
committerLiang Qi <liang.qi@qt.io>2019-01-18 15:57:09 +0100
commitdd47bfb5f259617b9e79fc1210386a1f1d800d4c (patch)
treec6d04c7d0577de5d3256f2a48c5d45128cf2c340 /src/assistant/help/qhelpenginecore.cpp
parenta83e01ef571fa26e2b76dcfe33027da6f95cfb76 (diff)
parenta7bac5437c59b53887c25b3c0d6ecf0689859c39 (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/qhelpenginecore.cpp')
-rw-r--r--src/assistant/help/qhelpenginecore.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/assistant/help/qhelpenginecore.cpp b/src/assistant/help/qhelpenginecore.cpp
index 6f1794a60..f61c2207d 100644
--- a/src/assistant/help/qhelpenginecore.cpp
+++ b/src/assistant/help/qhelpenginecore.cpp
@@ -78,6 +78,10 @@ bool QHelpEngineCorePrivate::setup()
needsSetup = false;
emit q->setupStarted();
+ const QVariant readOnlyVariant = q->property("_q_readonly");
+ const bool readOnly = readOnlyVariant.isValid()
+ ? readOnlyVariant.toBool() : false;
+ collectionHandler->setReadOnly(readOnly);
const bool opened = collectionHandler->openCollectionFile();
if (opened)
q->currentFilter();