forked from qt-creator/qt-creator
Help: Remove functionality of unregistering namespace from public API
Only used by the options page and generally needs knowledge of help namespaces, which requires querying QtHelp. Change-Id: Id8eda86e5b373ab3214e8eff6e2e3ce92c1239ba Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -172,7 +172,7 @@ void HelpManager::registerDocumentationNow(QFutureInterface<bool> &futureInterfa
|
||||
futureInterface.reportResult(docsChanged);
|
||||
}
|
||||
|
||||
void HelpManager::unregisterDocumentation(const QStringList &nameSpaces)
|
||||
void HelpManager::unregisterNamespaces(const QStringList &nameSpaces)
|
||||
{
|
||||
if (d->m_needsSetup) {
|
||||
for (const QString &name : nameSpaces)
|
||||
@@ -372,7 +372,7 @@ void HelpManager::setupHelpManager()
|
||||
d->cleanUpDocumentation();
|
||||
|
||||
if (!d->m_nameSpacesToUnregister.isEmpty()) {
|
||||
m_instance->unregisterDocumentation(Utils::toList(d->m_nameSpacesToUnregister));
|
||||
m_instance->unregisterNamespaces(Utils::toList(d->m_nameSpacesToUnregister));
|
||||
d->m_nameSpacesToUnregister.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user