summaryrefslogtreecommitdiff
path: root/tests/plugins
diff options
context:
space:
mode:
authorAlex Wilson <alex.wilson@nokia.com>2011-12-12 09:56:52 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-12 04:10:16 +0100
commite69e786007b9460530e6044fb69fa38cac047bea (patch)
tree5c1b3d810bea1b1dad1f601d6fae5d3c41c7a155 /tests/plugins
parentb7cefa0a1922485b935c889b7b36966d1da9ff13 (diff)
downloadqtlocation-e69e786007b9460530e6044fb69fa38cac047bea.tar.gz
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 <david.laing@nokia.com>
Diffstat (limited to 'tests/plugins')
-rw-r--r--tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp6
1 files changed, 3 insertions, 3 deletions
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);