forked from qt-creator/qt-creator
TextEditor: Avoid unneeded calls in BaseHoverHandler
In checkToolTip(), the call to decorateToolTip() is not needed since it does not affect the priority. In showToolTip(), we can assume that checkToolTip() was called and thus avoid a call to identifyMatch(). TextEditorWidgetPrivate::processTooltipRequest() is the only caller of checkToolTip() and showToolTip(). Change-Id: I362c697754b6a29c9c0b34f85d3022f00e3e1031 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -3143,7 +3143,7 @@ void TextEditorWidgetPrivate::processTooltipRequest(const QTextCursor &c)
|
||||
}
|
||||
|
||||
if (highest)
|
||||
highest->showToolTip(q, toolTipPoint, c.position());
|
||||
highest->showToolTip(q, toolTipPoint);
|
||||
}
|
||||
|
||||
bool TextEditorWidget::viewportEvent(QEvent *event)
|
||||
|
||||
Reference in New Issue
Block a user