eric7/QScintilla/Editor.py

branch
eric7
changeset 8515
7e7bebfb21e8
parent 8507
2a22d0880d21
child 8516
88c8178c7434
--- a/eric7/QScintilla/Editor.py	Tue Aug 17 12:32:21 2021 +0200
+++ b/eric7/QScintilla/Editor.py	Thu Aug 19 13:27:08 2021 +0200
@@ -8866,7 +8866,7 @@
         @type int
         """
         if self.__mouseHoverHelp is not None and pos >= 0:
-            line, index = self.lineIndexFromPosition(x)
+            line, index = self.lineIndexFromPosition(pos)
             if index > 0:
                 self.__mouseHoverHelp(self, line, index)
             else:
@@ -8911,13 +8911,13 @@
         @param line line of mouse cursor position
         @type int
         @param index column of mouse cursor position
-        @type TYPE
+        @type int
         @param data information text to be shown
         @type str
         """
         if data:
             pos = self.positionFromLineIndex(line, index)
             self.SendScintilla(QsciScintilla.SCI_CALLTIPSHOW,
-                               pos, data)
+                               pos, self._encodeString(data))
         else:
             self.__cancelMouseHoverHelp()

eric ide

mercurial