summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-06-24 10:34:51 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-06-24 10:34:51 (GMT)
commit766f95d10813382fd2b9b1b131bd964fd7b71ef9 (patch)
tree9fac268fb87b153e69b5a1c1cf0928397261b2ee /tests
parentd3ce585a235e6a92b8a662c06f8686da977daa49 (diff)
parent77428b7824cad3e3a496d740b94a337f8d3b5250 (diff)
downloadQt-766f95d10813382fd2b9b1b131bd964fd7b71ef9.zip
Qt-766f95d10813382fd2b9b1b131bd964fd7b71ef9.tar.gz
Qt-766f95d10813382fd2b9b1b131bd964fd7b71ef9.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt-multitouch
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qtouchevent/tst_qtouchevent.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qtouchevent/tst_qtouchevent.cpp b/tests/auto/qtouchevent/tst_qtouchevent.cpp
index dee059b..518eb0f 100644
--- a/tests/auto/qtouchevent/tst_qtouchevent.cpp
+++ b/tests/auto/qtouchevent/tst_qtouchevent.cpp
@@ -293,7 +293,7 @@ void tst_QTouchEvent::basicRawEventTranslation()
QCOMPARE(touchBeginPoint.rect(), QRectF(pos, QSizeF(0, 0)));
QCOMPARE(touchBeginPoint.screenRect(), QRectF(rawTouchPoint.screenPos(), QSizeF(0, 0)));
QCOMPARE(touchBeginPoint.sceneRect(), touchBeginPoint.screenRect());
- QCOMPARE(touchBeginPoint.pressure(), qreal(-1.));
+ QCOMPARE(touchBeginPoint.pressure(), qreal(1.));
// moving the point should translate to TouchUpdate
rawTouchPoint.setState(Qt::TouchPointMoved);
@@ -325,7 +325,7 @@ void tst_QTouchEvent::basicRawEventTranslation()
QCOMPARE(touchUpdatePoint.rect(), QRectF(pos + delta, QSizeF(0, 0)));
QCOMPARE(touchUpdatePoint.screenRect(), QRectF(rawTouchPoint.screenPos(), QSizeF(0, 0)));
QCOMPARE(touchUpdatePoint.sceneRect(), touchUpdatePoint.screenRect());
- QCOMPARE(touchUpdatePoint.pressure(), qreal(-1.));
+ QCOMPARE(touchUpdatePoint.pressure(), qreal(1.));
// releasing the point translates to TouchEnd
rawTouchPoint.setState(Qt::TouchPointReleased);
@@ -357,7 +357,7 @@ void tst_QTouchEvent::basicRawEventTranslation()
QCOMPARE(touchEndPoint.rect(), QRectF(pos + delta + delta, QSizeF(0, 0)));
QCOMPARE(touchEndPoint.screenRect(), QRectF(rawTouchPoint.screenPos(), QSizeF(0, 0)));
QCOMPARE(touchEndPoint.sceneRect(), touchEndPoint.screenRect());
- QCOMPARE(touchEndPoint.pressure(), qreal(-1.));
+ QCOMPARE(touchEndPoint.pressure(), qreal(0.));
}
void tst_QTouchEvent::multiPointRawEventTranslation()