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 |