--- 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;
}
}