Implemented tooltip and lookat for #include directives.

This commit is contained in:
Roberto Raggi
2008-12-10 17:21:01 +01:00
parent 6ae2cc0b5b
commit d454607264
7 changed files with 59 additions and 13 deletions

View File

@@ -177,6 +177,16 @@ void CppHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in
}
}
if (m_toolTip.isEmpty()) {
unsigned lineno = tc.blockNumber() + 1;
foreach (const Document::Include &incl, doc->includes()) {
if (lineno == incl.line()) {
m_toolTip = incl.fileName();
break;
}
}
}
if (m_toolTip.isEmpty()) {
// Move to the end of a qualified name
bool stop = false;