Set the help id for macros to their name

Enables F1 for opening their help pages. Seems to work nicely.
This commit is contained in:
Thorbjørn Lindeijer
2008-12-10 12:07:39 +01:00
parent a6c6b2c4ae
commit 037a9bb579

View File

@@ -235,6 +235,7 @@ void CppHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in
foreach (const Document::MacroUse &use, doc->macroUses()) {
if (use.contains(pos)) {
m_toolTip = use.macro().toString();
m_helpId = use.macro().name;
break;
}
}