1498 |
1498 |
1499 def gestureEvent(self, evt): |
1499 def gestureEvent(self, evt): |
1500 """ |
1500 """ |
1501 Protected method handling gesture events. |
1501 Protected method handling gesture events. |
1502 |
1502 |
1503 @param evt reference to the gesture event (QGestureEvent |
1503 @param evt reference to the gesture event |
|
1504 @type QGestureEvent |
1504 """ |
1505 """ |
1505 pinch = evt.gesture(Qt.GestureType.PinchGesture) |
1506 pinch = evt.gesture(Qt.GestureType.PinchGesture) |
1506 if pinch: |
1507 if pinch: |
1507 if pinch.state() == Qt.GestureState.GestureStarted: |
1508 if pinch.state() == Qt.GestureState.GestureStarted: |
1508 pinch.setTotalScaleFactor(self.__editor.zoomFactor() / 100.0) |
1509 pinch.setTotalScaleFactor(self.__editor.zoomFactor() / 100.0) |