diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-11-03 11:55:19 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2009-11-03 12:25:44 (GMT) |
commit | 51c9b68425c1d3fe64a08e6ef0357fbd6bdd8f8a (patch) | |
tree | 9ca3474ae5b9f051c3414dcbb40d8efb9fff14b9 /examples/gestures/imagegestures | |
parent | 14a1a9af8ae1b3d2379e6f8c24536afb20b39509 (diff) | |
download | Qt-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/imagegestures')
-rw-r--r-- | examples/gestures/imagegestures/imagewidget.cpp | 6 |
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(); } |