From e69e786007b9460530e6044fb69fa38cac047bea Mon Sep 17 00:00:00 2001 From: Alex Wilson Date: Mon, 12 Dec 2011 09:56:52 +1000 Subject: Fix for compile error introduced by QTouchEvent changes Just supplying a NULL device for the events rather than the old type constants. Change-Id: I28f5745a2174013f3cbdcfdfc6f698aa026d1df7 Reviewed-by: David Laing --- tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/plugins') diff --git a/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp b/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp index 904235eb..61555430 100644 --- a/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp +++ b/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp @@ -343,13 +343,13 @@ void QDeclarativePinchGenerator::timerEvent(QTimerEvent *event) QTouchEvent* touchEvent; switch (swipes_.at(masterSwipe_)->touchPoints.at(replayBookmark_).state()) { case (Qt::TouchPointPressed): - touchEvent = new QTouchEvent(QEvent::TouchBegin,QTouchEvent::TouchScreen,Qt::NoModifier,Qt::TouchPointReleased); + touchEvent = new QTouchEvent(QEvent::TouchBegin,NULL,Qt::NoModifier,Qt::TouchPointReleased); break; case (Qt::TouchPointMoved): - touchEvent = new QTouchEvent(QEvent::TouchUpdate,QTouchEvent::TouchScreen,Qt::NoModifier,Qt::TouchPointReleased); + touchEvent = new QTouchEvent(QEvent::TouchUpdate,NULL,Qt::NoModifier,Qt::TouchPointReleased); break; case (Qt::TouchPointReleased): - touchEvent = new QTouchEvent(QEvent::TouchEnd,QTouchEvent::TouchScreen,Qt::NoModifier,Qt::TouchPointReleased); + touchEvent = new QTouchEvent(QEvent::TouchEnd,NULL,Qt::NoModifier,Qt::TouchPointReleased); break; default: Q_ASSERT(false); -- cgit v1.2.1