summaryrefslogtreecommitdiffstats
path: root/examples/gestures/imagegestures/imagewidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gestures/imagegestures/imagewidget.cpp')
-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 95525c5..28de6da 100644
--- a/examples/gestures/imagegestures/imagewidget.cpp
+++ b/examples/gestures/imagegestures/imagewidget.cpp
@@ -128,9 +128,9 @@ void ImageWidget::panTriggered(QPanGesture *gesture)
setCursor(Qt::ArrowCursor);
}
#endif
- QSizeF lastOffset = gesture->offset();
- horizontalOffset += lastOffset.width();
- verticalOffset += lastOffset.height();
+ QPointF lastOffset = gesture->offset();
+ horizontalOffset += lastOffset.x();
+ verticalOffset += lastOffset.y();
update();
}