mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-16 07:36:35 +01:00
Revert "Possible fix for #1630735"
This reverts commit 4eeed37a2e.
Revert as it did not work.
This commit is contained in:
parent
4eeed37a2e
commit
d2eb1426b0
1 changed files with 1 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue