forked from qt-creator/qt-creator
Help: Add option to only register highest versioned Qt documentation
In Options > Kits > Qt Versions. And make it the default. It registers each documentation file only for the highest registered Qt version. If you have Qt 5.12 and Qt 5.13 registered, but only installed QtWebEngine for Qt 5.12, you'll get QtWebEngine documentation for Qt 5.12, but the other documentation is from Qt 5.13. That is usually sufficient, since the documentation still contains "old" API, and new API is flagged with "since". This avoids registering a lot of documentation, which creates a startup performance issue, and also leads to usually unneeded popups for which Qt version some documentation should be shown. The option also allows going back to registering all documentation, and no Qt documentation at all. Fixes: QTCREATORBUG-21482 Fixes: QTCREATORBUG-22799 Task-number: QTCREATORBUG-10004 Change-Id: I1c7bc73982d48d8e53f5083e2fa851b6c5f60f80 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -196,6 +196,8 @@ void HelpManager::unregisterNamespaces(const QStringList &nameSpaces)
|
||||
bool docsChanged = false;
|
||||
for (const QString &nameSpace : nameSpaces) {
|
||||
const QString filePath = d->m_helpEngine->documentationFileName(nameSpace);
|
||||
if (filePath.isEmpty()) // wasn't registered anyhow, ignore
|
||||
continue;
|
||||
if (d->m_helpEngine->unregisterDocumentation(nameSpace)) {
|
||||
docsChanged = true;
|
||||
d->m_userRegisteredFiles.remove(filePath);
|
||||
|
||||
Reference in New Issue
Block a user