src/gui/kernel/qgesturerecognizer.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
child 33 3e2da88830cd
--- a/src/gui/kernel/qgesturerecognizer.cpp	Wed Jun 23 19:07:03 2010 +0300
+++ b/src/gui/kernel/qgesturerecognizer.cpp	Tue Jul 06 15:10:48 2010 +0300
@@ -161,6 +161,8 @@
 
     Reimplement this function to create a custom QGesture-derived gesture
     object if necessary.
+
+    The application takes ownership of the created gesture object.
 */
 QGesture *QGestureRecognizer::create(QObject *target)
 {
@@ -181,6 +183,7 @@
         QGesturePrivate *d = gesture->d_func();
         d->state = Qt::NoGesture;
         d->hotSpot = QPointF();
+        d->sceneHotSpot = QPointF();
         d->isHotSpotSet = false;
     }
 }