summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-10-22 18:15:36 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-10-22 18:20:52 (GMT)
commit7856c0397a42d26fa4fdd3ead3df7886b408b8ed (patch)
treea382c40e86b27d66ec152de2591f943be34592a7 /examples
parent30b66e1b92b54b8f035da3c66ad086340befcf5b (diff)
downloadQt-7856c0397a42d26fa4fdd3ead3df7886b408b8ed.zip
Qt-7856c0397a42d26fa4fdd3ead3df7886b408b8ed.tar.gz
Qt-7856c0397a42d26fa4fdd3ead3df7886b408b8ed.tar.bz2
Compile fix.
QPanGesture was changed to use QPointF instead of QSizeF, also need to change all usages of the pan gesture. Reviewed-by: trustme
Diffstat (limited to 'examples')
-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();
}