eric7/QScintilla/QsciScintillaCompat.py

branch
eric7
changeset 8716
7bd161e50995
parent 8713
c2a124c2ecbb
child 8881
54e42bc2437a
equal deleted inserted replaced
8714:85deb98a0a6c 8716:7bd161e50995
1693 @param point point to be converted 1693 @param point point to be converted
1694 @type QPoin 1694 @type QPoin
1695 @return tuple containing the line number and index number 1695 @return tuple containing the line number and index number
1696 @rtype tuple of (int, int) 1696 @rtype tuple of (int, int)
1697 """ 1697 """
1698 pos = self.SendScintilla(QsciScintilla.SCI_POSITIONFROMPOINT, 1698 pos = self.positionFromPoint(point)
1699 point.x(), point.y())
1700 return self.lineIndexFromPosition(pos) 1699 return self.lineIndexFromPosition(pos)
1701 1700
1702 ## ######################################################################### 1701 ## #########################################################################
1703 ## ## Methods below have been added to QScintilla starting with version 2.x. 1702 ## ## Methods below have been added to QScintilla starting with version 2.x.
1704 ## ######################################################################### 1703 ## #########################################################################

eric ide

mercurial