summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativepincharea_p.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-02-01 03:09:44 (GMT)
committerMartin Jones <martin.jones@nokia.com>2011-02-01 03:09:44 (GMT)
commit88b072b3644cfd960367096ae0103e8ddef0d06d (patch)
treeb3628c5e6d89d0827714140c59928118804d8d91 /src/declarative/graphicsitems/qdeclarativepincharea_p.h
parentce87671e0143e3e665c076974482f3ae50850058 (diff)
downloadQt-88b072b3644cfd960367096ae0103e8ddef0d06d.zip
Qt-88b072b3644cfd960367096ae0103e8ddef0d06d.tar.gz
Qt-88b072b3644cfd960367096ae0103e8ddef0d06d.tar.bz2
PinchArea sometimes failed.
Almost always failed on Mac and could fail on other systems due to QDeclarativePinchEvent::m_accepted not being initialized. Task-number: QTBUG-15491 Reviewed-by: Bea Lam
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativepincharea_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativepincharea_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativepincharea_p.h b/src/declarative/graphicsitems/qdeclarativepincharea_p.h
index cd5423d..6d04708 100644
--- a/src/declarative/graphicsitems/qdeclarativepincharea_p.h
+++ b/src/declarative/graphicsitems/qdeclarativepincharea_p.h
@@ -207,7 +207,7 @@ class Q_AUTOTEST_EXPORT QDeclarativePinchEvent : public QObject
public:
QDeclarativePinchEvent(QPointF c, qreal s, qreal a, qreal r)
- : QObject(), m_center(c), m_scale(s), m_angle(a), m_rotation(r) {}
+ : QObject(), m_center(c), m_scale(s), m_angle(a), m_rotation(r), m_accepted(true) {}
QPointF center() const { return m_center; }
QPointF startCenter() const { return m_startCenter; }