diff options
author | Leandro Melo <leandro.melo@nokia.com> | 2010-11-17 11:00:51 +0100 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2010-11-17 11:17:54 +0100 |
commit | 1800e98ef1e53f4d4a113e0c530a7425ef031789 (patch) | |
tree | e76c3e1c29387a90fcfbc082de9708248cf9a418 /src/plugins/qmljseditor | |
parent | 2b8e5b5333718a139eb476b974dc47045816e994 (diff) | |
download | qt-creator-1800e98ef1e53f4d4a113e0c530a7425ef031789.tar.gz |
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
Diffstat (limited to 'src/plugins/qmljseditor')
-rw-r--r-- | src/plugins/qmljseditor/qmljshoverhandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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)); } } } |