summaryrefslogtreecommitdiffstats
path: root/examples/multitouch/knobs
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-06-05 15:36:18 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-06-05 15:36:18 (GMT)
commit66f1080dc931ea024014ab3153ef7b99039540d2 (patch)
tree4ff5c8fbc3ecaf508635fb915fbe7ec33e61646d /examples/multitouch/knobs
parent8d8b3e03cfc36c72665494eaa9bb461ff18072a0 (diff)
downloadQt-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.cpp8
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));
}