forked from qt-creator/qt-creator
Fix missing documentation when built with Qt 6
The default value for readOnly property of QHelpEngineCore changed to true in Qt 6. We need to set it to false by hand. Task-number: QTBUG-87783 Change-Id: I6b0d4f043797463b3437a6aef673eba8e1b9c3ad Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -411,6 +411,10 @@ QHelpEngine &LocalHelpManager::helpEngine()
|
||||
QMutexLocker _(&m_guiMutex);
|
||||
if (!m_guiEngine) {
|
||||
m_guiEngine = new QHelpEngine(QString());
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
m_guiEngine->setReadOnly(false);
|
||||
#endif
|
||||
|
||||
#ifdef HELP_NEW_FILTER_ENGINE
|
||||
m_guiEngine->setUsesFilterEngine(true);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user