TextEditor: Privatize BaseHoverHandler::decorateToolTip()

Never overridden, and does not look safe to invoke more than once.

Change-Id: If5f3830f3fbf26badb6335443defd628c05cf65a
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2019-07-22 15:17:47 +02:00
parent c52c857076
commit e23664cc42
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ void CppHoverHandler::identifyMatch(TextEditorWidget *editorWidget, int pos, Rep
const QSharedPointer<CppElement> &cppElement = evaluator.cppElement();
const QStringList candidates = cppElement->helpIdCandidates;
const HelpItem helpItem(candidates + fallback, cppElement->helpMark, cppElement->helpCategory);
setLastHelpItemIdentified(helpItem); // tool tip appended by decorateToolTip
setLastHelpItemIdentified(helpItem); // tool tip appended by BaseHoverHandler::decorateToolTip
if (!helpItem.isValid())
tip += cppElement->tooltip;
} else {