diff options
Diffstat (limited to 'examples/widgets/touch/knobs/knob.cpp')
-rw-r--r-- | examples/widgets/touch/knobs/knob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/touch/knobs/knob.cpp b/examples/widgets/touch/knobs/knob.cpp index 12aaa1e948..659ba82f45 100644 --- a/examples/widgets/touch/knobs/knob.cpp +++ b/examples/widgets/touch/knobs/knob.cpp @@ -82,7 +82,7 @@ bool Knob::sceneEvent(QEvent *event) const QTouchEvent::TouchPoint &touchPoint2 = touchEvent->touchPoints().last(); QLineF line1(touchPoint1.lastScenePos(), touchPoint2.lastScenePos()); - QLineF line2(touchPoint1.scenePos(), touchPoint2.scenePos()); + QLineF line2(touchPoint1.scenePosition(), touchPoint2.scenePosition()); setTransform(QTransform().rotate(line2.angleTo(line1)), true); } |