CppEditor: Direct element access, less symbols.

Change-Id: Id79b69b271ad90c742a3884f8b818a7ee7f26a5b
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-10-10 22:32:31 +02:00
parent 6dfe3207d2
commit 58f101cb55
5 changed files with 89 additions and 246 deletions

View File

@@ -82,12 +82,12 @@ void CppHoverHandler::identifyMatch(TextEditor::ITextEditor *editor, int pos)
if (evaluator.identifiedCppElement()) {
const QSharedPointer<CppElement> &cppElement = evaluator.cppElement();
if (!isDiagnosticTooltip())
setToolTip(cppElement->tooltip());
foreach (const QString &helpId, cppElement->helpIdCandidates()) {
setToolTip(cppElement->tooltip);
foreach (const QString &helpId, cppElement->helpIdCandidates) {
if (!Core::HelpManager::instance()->linksForIdentifier(helpId).isEmpty()) {
setLastHelpItemIdentified(TextEditor::HelpItem(helpId,
cppElement->helpMark(),
cppElement->helpCategory()));
cppElement->helpMark,
cppElement->helpCategory));
break;
}
}