forked from qt-creator/qt-creator
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user