diff options
Diffstat (limited to 'examples/touch/knobs/knob.cpp')
-rw-r--r-- | examples/touch/knobs/knob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/touch/knobs/knob.cpp b/examples/touch/knobs/knob.cpp index b3d07e7335..fbba7f2cbb 100644 --- a/examples/touch/knobs/knob.cpp +++ b/examples/touch/knobs/knob.cpp @@ -74,7 +74,7 @@ bool Knob::sceneEvent(QEvent *event) QLineF line1(touchPoint1.lastScenePos(), touchPoint2.lastScenePos()); QLineF line2(touchPoint1.scenePos(), touchPoint2.scenePos()); - rotate(line2.angleTo(line1)); + setTransform(QTransform().rotate(line2.angleTo(line1)), true); } break; |