forked from qt-creator/qt-creator
Core/Help: Clean up HelpManager interface and users
Change-Id: Ia6edf583f2a002d7c6f4878df670a78614ea087d Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -99,7 +99,7 @@ QString HelpItem::extractContent(bool extended) const
|
||||
helpLinks.insert(m_helpId, m_helpId);
|
||||
}
|
||||
foreach (const QUrl &url, helpLinks) {
|
||||
const QString html = QString::fromUtf8(Core::HelpManager::instance()->fileData(url));
|
||||
const QString html = QString::fromUtf8(Core::HelpManager::fileData(url));
|
||||
switch (m_category) {
|
||||
case Brief:
|
||||
contents = htmlExtractor.getClassOrNamespaceBrief(html, m_docMark);
|
||||
@@ -142,6 +142,6 @@ QString HelpItem::extractContent(bool extended) const
|
||||
QMap<QString, QUrl> HelpItem::retrieveHelpLinks() const
|
||||
{
|
||||
if (m_helpLinks.isEmpty())
|
||||
m_helpLinks = Core::HelpManager::instance()->linksForIdentifier(m_helpId);
|
||||
m_helpLinks = Core::HelpManager::linksForIdentifier(m_helpId);
|
||||
return m_helpLinks;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user