summaryrefslogtreecommitdiffstats
path: root/examples/gestures
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-03 11:55:19 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-03 12:25:44 (GMT)
commit51c9b68425c1d3fe64a08e6ef0357fbd6bdd8f8a (patch)
tree9ca3474ae5b9f051c3414dcbb40d8efb9fff14b9 /examples/gestures
parent14a1a9af8ae1b3d2379e6f8c24536afb20b39509 (diff)
downloadQt-51c9b68425c1d3fe64a08e6ef0357fbd6bdd8f8a.zip
Qt-51c9b68425c1d3fe64a08e6ef0357fbd6bdd8f8a.tar.gz
Qt-51c9b68425c1d3fe64a08e6ef0357fbd6bdd8f8a.tar.bz2
Compile fix after the last gesture api change
Reviewed-by: trustme
Diffstat (limited to 'examples/gestures')
-rw-r--r--examples/gestures/imagegestures/imagewidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/gestures/imagegestures/imagewidget.cpp b/examples/gestures/imagegestures/imagewidget.cpp
index da9daae..f615129 100644
--- a/examples/gestures/imagegestures/imagewidget.cpp
+++ b/examples/gestures/imagegestures/imagewidget.cpp
@@ -124,9 +124,9 @@ void ImageWidget::panTriggered(QPanGesture *gesture)
setCursor(Qt::ArrowCursor);
}
#endif
- QPointF lastOffset = gesture->offset();
- horizontalOffset += lastOffset.x();
- verticalOffset += lastOffset.y();
+ QPointF delta = gesture->delta();
+ horizontalOffset += delta.x();
+ verticalOffset += delta.y();
update();
}