summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-16 15:09:46 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-05-11 14:51:38 (GMT)
commit31d90932bd52d2557a9f1b164632e879105ce67b (patch)
tree292c782e7291540bdfcb5f4f06e7efcef4986f2d /examples
parenta72e6d351f136e0cd5e0f9c178e5f09eb70ca2db (diff)
downloadQt-31d90932bd52d2557a9f1b164632e879105ce67b.zip
Qt-31d90932bd52d2557a9f1b164632e879105ce67b.tar.gz
Qt-31d90932bd52d2557a9f1b164632e879105ce67b.tar.bz2
Gestures/imageviewer example compiles
Diffstat (limited to 'examples')
-rw-r--r--examples/gestures/imageviewer/imagewidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/gestures/imageviewer/imagewidget.cpp b/examples/gestures/imageviewer/imagewidget.cpp
index 1a341a5..0a279ca 100644
--- a/examples/gestures/imageviewer/imagewidget.cpp
+++ b/examples/gestures/imageviewer/imagewidget.cpp
@@ -161,17 +161,17 @@ void ImageWidget::gestureEvent(QGestureEvent *event)
update();
} else {
// only slide gesture should be accepted
- const QPannableGesture *pg = static_cast<const QPannableGesture*>(g);
+ const QPanningGesture *pg = static_cast<const QPanningGesture*>(g);
if (pg->direction() != pg->lastDirection()) {
// ###: event->cancel();
}
if (g->state() == Qt::GestureFinished) {
touchFeedback.sliding = false;
zoomed = rotated = false;
- if (pg->direction() == QPannableGesture::Right) {
+ if (pg->direction() == Qt::RightDirection) {
qDebug() << "slide right";
goNextImage();
- } else if (pg->direction() == QPannableGesture::Left) {
+ } else if (pg->direction() == Qt::LeftDirection) {
qDebug() << "slide left";
goPrevImage();
}