aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2010-11-17 11:00:51 +0100
committerLeandro Melo <leandro.melo@nokia.com>2010-11-17 11:17:54 +0100
commit1800e98ef1e53f4d4a113e0c530a7425ef031789 (patch)
treee76c3e1c29387a90fcfbc082de9708248cf9a418
parent2b8e5b5333718a139eb476b974dc47045816e994 (diff)
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
-rw-r--r--src/plugins/qmljseditor/qmljshoverhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmljshoverhandler.cpp b/src/plugins/qmljseditor/qmljshoverhandler.cpp
index 5e7f24ddf0c..cc109750d2a 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));
}
}
}