8864 @type int |
8864 @type int |
8865 @param y y-value of mouse screen position |
8865 @param y y-value of mouse screen position |
8866 @type int |
8866 @type int |
8867 """ |
8867 """ |
8868 if self.__mouseHoverHelp is not None and pos >= 0: |
8868 if self.__mouseHoverHelp is not None and pos >= 0: |
8869 line, index = self.lineIndexFromPosition(x) |
8869 line, index = self.lineIndexFromPosition(pos) |
8870 if index > 0: |
8870 if index > 0: |
8871 self.__mouseHoverHelp(self, line, index) |
8871 self.__mouseHoverHelp(self, line, index) |
8872 else: |
8872 else: |
8873 self.__cancelMouseHoverHelp() |
8873 self.__cancelMouseHoverHelp() |
8874 else: |
8874 else: |
8909 Public method to show the mouse hover help data. |
8909 Public method to show the mouse hover help data. |
8910 |
8910 |
8911 @param line line of mouse cursor position |
8911 @param line line of mouse cursor position |
8912 @type int |
8912 @type int |
8913 @param index column of mouse cursor position |
8913 @param index column of mouse cursor position |
8914 @type TYPE |
8914 @type int |
8915 @param data information text to be shown |
8915 @param data information text to be shown |
8916 @type str |
8916 @type str |
8917 """ |
8917 """ |
8918 if data: |
8918 if data: |
8919 pos = self.positionFromLineIndex(line, index) |
8919 pos = self.positionFromLineIndex(line, index) |
8920 self.SendScintilla(QsciScintilla.SCI_CALLTIPSHOW, |
8920 self.SendScintilla(QsciScintilla.SCI_CALLTIPSHOW, |
8921 pos, data) |
8921 pos, self._encodeString(data)) |
8922 else: |
8922 else: |
8923 self.__cancelMouseHoverHelp() |
8923 self.__cancelMouseHoverHelp() |