Commit 1800e98e authored by Leandro Melo's avatar Leandro Melo

Tooltips: Fix brief description for QML elements

The brief description was not being shown. The help id for a
QML element is something like QML.Item while the extraction
mark is simply Item.

Reviewed-by: Thomas Hartmann
Reviewed-by: con
parent 2b8e5b53
......@@ -124,7 +124,8 @@ void HoverHandler::identifyMatch(TextEditor::ITextEditor *editor, int pos)
handleOrdinaryMatch(lookupContext, semanticInfo.nodeUnderCursor(pos));
const QString &helpId = qmlHelpId(toolTip());
if (!helpId.isEmpty())
setLastHelpItemIdentified(TextEditor::HelpItem(helpId, TextEditor::HelpItem::QML));
setLastHelpItemIdentified(TextEditor::HelpItem(helpId, toolTip(),
TextEditor::HelpItem::QML));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment