eric7/WebBrowser/WebBrowserPage.py

branch
eric7
changeset 9077
33827549f187
parent 8974
92c7bffbcf1e
equal deleted inserted replaced
9076:eb1f2c09db70 9077:33827549f187
390 @param pos position to be mapped 390 @param pos position to be mapped
391 @type QPoint 391 @type QPoint
392 @return viewport position 392 @return viewport position
393 @rtype QPoint 393 @rtype QPoint
394 """ 394 """
395 return QPoint(pos.x() // self.zoomFactor(), 395 return QPoint(int(pos.x() // self.zoomFactor()),
396 pos.y() // self.zoomFactor()) 396 int(pos.y() // self.zoomFactor()))
397 397
398 def hitTestContent(self, pos): 398 def hitTestContent(self, pos):
399 """ 399 """
400 Public method to test the content at a specified position. 400 Public method to test the content at a specified position.
401 401

eric ide

mercurial