diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-04-09 17:47:17 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2024-04-18 12:15:57 +0200 |
commit | 5aaa1b0b26ddcdbe0a27e7560975e5c7787b790d (patch) | |
tree | 2d7d91440cfe91a5117e823bd40c9548cecceed8 | |
parent | 808c44138044e69bd92526fda15a6b01e1251017 (diff) |
QHelpEngineCore: Remove the old hack for dynamic readonly property
[ChangeLog][QtHelp][QHelpEngineCore] Remove the old hack with
setting the dynamic "_q_readonly" property to change the read only
mode. Use QHelpEngineCore::setReadOnly() instead.
Use public QHelpEngineCore::setReadOnly() instead.
The hack had to still exist around when the amended
change was done so that it was still available for Qt 5 series.
Now it's not needed anymore.
Amends 15d7a30d41b423846fc74d9dd252c1e2a84769e2
Change-Id: I79e23850dc597db19f0da8b4dfec9fde4b529a35
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
-rw-r--r-- | src/assistant/help/qhelpenginecore.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/assistant/help/qhelpenginecore.cpp b/src/assistant/help/qhelpenginecore.cpp index e5dc4aa63..5726e3250 100644 --- a/src/assistant/help/qhelpenginecore.cpp +++ b/src/assistant/help/qhelpenginecore.cpp @@ -65,9 +65,7 @@ bool QHelpEngineCorePrivate::setup() needsSetup = false; emit q->setupStarted(); - const QVariant readOnlyVariant = q->property("_q_readonly"); - const bool readOnly = readOnlyVariant.isValid() ? readOnlyVariant.toBool() : q->isReadOnly(); - collectionHandler->setReadOnly(readOnly); + collectionHandler->setReadOnly(q->isReadOnly()); const bool opened = collectionHandler->openCollectionFile(); if (opened) q->currentFilter(); |