diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-05 15:36:18 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-06-05 15:36:18 (GMT) |
commit | 66f1080dc931ea024014ab3153ef7b99039540d2 (patch) | |
tree | 4ff5c8fbc3ecaf508635fb915fbe7ec33e61646d /examples/multitouch/knobs | |
parent | 8d8b3e03cfc36c72665494eaa9bb461ff18072a0 (diff) | |
download | Qt-66f1080dc931ea024014ab3153ef7b99039540d2.zip Qt-66f1080dc931ea024014ab3153ef7b99039540d2.tar.gz Qt-66f1080dc931ea024014ab3153ef7b99039540d2.tar.bz2 |
Compile after API updates
Diffstat (limited to 'examples/multitouch/knobs')
-rw-r--r-- | examples/multitouch/knobs/knob.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/multitouch/knobs/knob.cpp b/examples/multitouch/knobs/knob.cpp index bced73c..d568167 100644 --- a/examples/multitouch/knobs/knob.cpp +++ b/examples/multitouch/knobs/knob.cpp @@ -69,11 +69,11 @@ bool Knob::sceneEvent(QEvent *event) QGraphicsSceneTouchEvent *touchEvent = static_cast<QGraphicsSceneTouchEvent *>(event); if (touchEvent->touchPoints().count() == 2) { - QGraphicsSceneTouchEvent::TouchPoint *touchPoint1 = touchEvent->touchPoints().first(); - QGraphicsSceneTouchEvent::TouchPoint *touchPoint2 = touchEvent->touchPoints().last(); + const QGraphicsSceneTouchEvent::TouchPoint &touchPoint1 = touchEvent->touchPoints().first(); + const QGraphicsSceneTouchEvent::TouchPoint &touchPoint2 = touchEvent->touchPoints().last(); - QLineF line1(touchPoint1->lastScenePos(), touchPoint2->lastScenePos()); - QLineF line2(touchPoint1->scenePos(), touchPoint2->scenePos()); + QLineF line1(touchPoint1.lastScenePos(), touchPoint2.lastScenePos()); + QLineF line2(touchPoint1.scenePos(), touchPoint2.scenePos()); rotate(line2.angleTo(line1)); } |