Revert "Possible fix for #1630735"

This reverts commit 4eeed37a2e.

Revert as it did not work.
This commit is contained in:
Kovid Goyal 2016-10-09 10:27:11 +05:30
parent 4eeed37a2e
commit d2eb1426b0

View file

@ -7,7 +7,6 @@
__copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>'
import re, importlib
from collections import deque
import textwrap, unicodedata
from future_builtins import map
@ -104,7 +103,6 @@ def __init__(self, parent=None, expected_geometry=(100, 50)):
self.cursorPositionChanged.connect(self.highlight_cursor_line)
self.blockCountChanged[int].connect(self.update_line_number_area_width)
self.updateRequest.connect(self.update_line_number_area)
self.currently_showing_tooltip_memory = deque(maxlen=10)
@dynamic_property
def is_modified(self):
@ -650,11 +648,9 @@ def show_tooltip(self, ev):
if fmt is not None:
tt = unicode(fmt.toolTip())
if tt:
tt = textwrap.fill(tt)
self.currently_showing_tooltip_memory.append(tt)
QToolTip.setFont(self.tooltip_font)
QToolTip.setPalette(self.tooltip_palette)
QToolTip.showText(ev.globalPos(), tt)
QToolTip.showText(ev.globalPos(), textwrap.fill(tt))
return
QToolTip.hideText()
ev.ignore()