forked from qt-creator/qt-creator
Qt/Help: Fix the "Highest Version Only" setting for the online installer
The Qt support has the option to only register the documentation for "the highest Qt version", which is enabled by default. That is based on finding the help files for registered Qt versions and only registering the right set depending on the settings. Unfortunately the online installer additionally registers the Qt documentation path as a separate documentation set in the install settings. (This was originally introduced to support documentation for components that are not directly related to a Qt version.) The Help plugin that handles this setting doesn't know that the Qt support explicitly doesn't want the documentation of some Qt versions registered. Let the Qt support explicitly tell the Help plugin about documentation files that should not be registered, even if they appear in the separate install setting. Change-Id: I0512adc0dfe9969481ce83094f5349a49aae5d9f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -97,5 +97,11 @@ void showHelpUrl(const QString &url, HelpViewerLocation location)
|
||||
showHelpUrl(QUrl(url), location);
|
||||
}
|
||||
|
||||
void setBlockedDocumentation(const QStringList &fileNames)
|
||||
{
|
||||
if (checkInstance())
|
||||
m_instance->setBlockedDocumentation(fileNames);
|
||||
}
|
||||
|
||||
} // HelpManager
|
||||
} // Core
|
||||
|
||||
Reference in New Issue
Block a user