OSDN Git Service

Tooltips: Fix brief description for QML elements
authorLeandro Melo <leandro.melo@nokia.com>
Wed, 17 Nov 2010 10:00:51 +0000 (11:00 +0100)
committerLeandro Melo <leandro.melo@nokia.com>
Wed, 17 Nov 2010 10:17:54 +0000 (11:17 +0100)
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

index 5e7f24d..cc10975 100644 (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));
         }
     }
 }