diff options
Diffstat (limited to 'tests/manual/gestures')
-rw-r--r-- | tests/manual/gestures/pinch/pinchwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/gestures/pinch/pinchwidget.cpp b/tests/manual/gestures/pinch/pinchwidget.cpp index aa11f8d..cc16443 100644 --- a/tests/manual/gestures/pinch/pinchwidget.cpp +++ b/tests/manual/gestures/pinch/pinchwidget.cpp @@ -104,8 +104,8 @@ void PinchWidget::onPinchTriggered() QPoint transformCenter = worldTransform.map(QPoint(width()/2, height()/2)); currentPinchTransform = QTransform() .translate(transformCenter.x(), transformCenter.y()) - .scale(pinch->scaleFactor(), pinch->scaleFactor()) - .rotateRadians(pinch->rotationAngle()) + .scale(pinch->totalScaleFactor(), pinch->totalScaleFactor()) + .rotate(pinch->totalRotationAngle()) .translate(-transformCenter.x(), -transformCenter.y()); update(); } |