forked from qt-creator/qt-creator
CppEditor: Direct element access, less symbols.
Change-Id: Id79b69b271ad90c742a3884f8b818a7ee7f26a5b Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user