1937 def lineIndexFromPoint(self, point): |
1937 def lineIndexFromPoint(self, point): |
1938 """ |
1938 """ |
1939 Public method to convert a point to line and index. |
1939 Public method to convert a point to line and index. |
1940 |
1940 |
1941 @param point point to be converted |
1941 @param point point to be converted |
1942 @type QPoin |
1942 @type QPoint |
1943 @return tuple containing the line number and index number |
1943 @return tuple containing the line number and index number |
1944 @rtype tuple of (int, int) |
1944 @rtype tuple of (int, int) |
1945 """ |
1945 """ |
1946 pos = self.positionFromPoint(point) |
1946 pos = self.positionFromPoint(point) |
1947 return self.lineIndexFromPosition(pos) |
1947 return self.lineIndexFromPosition(pos) |