IconEditor/IconEditorWindow.py

changeset 5651
982465f8389c
parent 5631
d0beabfaad42
child 5736
000ea446ff4b
equal deleted inserted replaced
5650:4c52f07c186e 5651:982465f8389c
1387 pinch = evt.gesture(Qt.PinchGesture) 1387 pinch = evt.gesture(Qt.PinchGesture)
1388 if pinch: 1388 if pinch:
1389 if pinch.state() == Qt.GestureStarted: 1389 if pinch.state() == Qt.GestureStarted:
1390 pinch.setTotalScaleFactor(self.__editor.zoomFactor() / 100.0) 1390 pinch.setTotalScaleFactor(self.__editor.zoomFactor() / 100.0)
1391 elif pinch.state() == Qt.GestureUpdated: 1391 elif pinch.state() == Qt.GestureUpdated:
1392 self.__editor.setZoomFactor(int(pinch.totalScaleFactor() * 100)) 1392 self.__editor.setZoomFactor(
1393 int(pinch.totalScaleFactor() * 100))
1393 self.__updateZoom() 1394 self.__updateZoom()
1394 evt.accept() 1395 evt.accept()

eric ide

mercurial