From e39d9914491c4a21f7c44140a26fc9bdff682b9d Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Mon, 21 Sep 2009 13:35:35 +0200 Subject: Fix signal/slot connection bug A signal was renamed. Update the example to reflect this. Rev-By: Trustme. Example fix only. --- examples/gestures/imageviewer/imagewidget.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/gestures/imageviewer/imagewidget.cpp b/examples/gestures/imageviewer/imagewidget.cpp index e17d746..2be6cc5 100644 --- a/examples/gestures/imageviewer/imagewidget.cpp +++ b/examples/gestures/imageviewer/imagewidget.cpp @@ -62,13 +62,13 @@ ImageWidget::ImageWidget(QWidget *parent) QGesture *panGesture = new QPanGesture(this); connect(panGesture, SIGNAL(started()), this, SLOT(panTriggered())); connect(panGesture, SIGNAL(finished()), this, SLOT(panTriggered())); - connect(panGesture, SIGNAL(cancelled()), this, SLOT(panTriggered())); + connect(panGesture, SIGNAL(canceled()), this, SLOT(panTriggered())); connect(panGesture, SIGNAL(triggered()), this, SLOT(panTriggered())); QGesture *pinchGesture = new QPinchGesture(this); connect(pinchGesture, SIGNAL(started()), this, SLOT(pinchTriggered())); connect(pinchGesture, SIGNAL(finished()), this, SLOT(pinchTriggered())); - connect(pinchGesture, SIGNAL(cancelled()), this, SLOT(pinchTriggered())); + connect(pinchGesture, SIGNAL(canceled()), this, SLOT(pinchTriggered())); connect(pinchGesture, SIGNAL(triggered()), this, SLOT(pinchTriggered())); //! [construct swipe gesture] @@ -138,11 +138,6 @@ void ImageWidget::pinchTriggered() void ImageWidget::swipeTriggered() { QSwipeGesture *pg = qobject_cast(sender()); -//! [swipe slot start] - qDebug() << (int) pg->horizontalDirection(); - qDebug() << pg->swipeAngle(); - -//! [swipe slot finish] if (pg->horizontalDirection() == QSwipeGesture::Left || pg->verticalDirection() == QSwipeGesture::Up) goPrevImage(); -- cgit v0.12