Implement context help for pro file editor

Task-number: QTCREATORBUG-6325
Change-Id: Ie8b2eb582eb527eac6af56d0c69a8ae1dafdc1df
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
Jarek Kobus
2011-11-10 11:55:05 +01:00
parent 8fcb4d8084
commit da14d86104
11 changed files with 332 additions and 6 deletions

View File

@@ -883,6 +883,12 @@ void HelpPlugin::activateContext()
if (IContext *context = m_core->currentContextObject()) {
m_idFromContext = context->contextHelpId();
links = Core::HelpManager::instance()->linksForIdentifier(m_idFromContext);
if (links.isEmpty()) {
// Maybe this is already an URL...
QUrl url(m_idFromContext);
if (url.isValid())
links.insert(m_idFromContext, m_idFromContext);
}
}
if (HelpViewer* viewer = viewerForContextMode()) {