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
This commit is contained in:
Leandro Melo
2010-11-17 11:00:51 +01:00
parent 2b8e5b5333
commit 1800e98ef1

View File

@@ -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));
}
}
}