From 1800e98ef1e53f4d4a113e0c530a7425ef031789 Mon Sep 17 00:00:00 2001 From: Leandro Melo Date: Wed, 17 Nov 2010 11:00:51 +0100 Subject: [PATCH] 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 --- src/plugins/qmljseditor/qmljshoverhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmljseditor/qmljshoverhandler.cpp b/src/plugins/qmljseditor/qmljshoverhandler.cpp index 5e7f24ddf0..cc109750d2 100644 --- a/src/plugins/qmljseditor/qmljshoverhandler.cpp +++ b/src/plugins/qmljseditor/qmljshoverhandler.cpp @@ -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)); } } } -- 2.11.0