summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsensor/tst_qsensor.cpp
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2013-01-08 16:55:38 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-23 18:32:35 +0100
commit02285d735e7d3bd8ddfb61b7ea5e16da4ad522d1 (patch)
tree6000899044feee17aae140df56eba1aa6126ffee /tests/auto/qsensor/tst_qsensor.cpp
parentbbf9a9f61a18ccb478cbca414d85ed531f078966 (diff)
Add QPressureSensor
This adds a new QPressureSensor plus the assorted reading and filter classes, as well as a QML API. The Blackberry backend is ported to use the new reading class. Change-Id: Ifc86a2ae955a9337a67fd9a86ceabab908917cb3 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Diffstat (limited to 'tests/auto/qsensor/tst_qsensor.cpp')
-rw-r--r--tests/auto/qsensor/tst_qsensor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qsensor/tst_qsensor.cpp b/tests/auto/qsensor/tst_qsensor.cpp
index 3852f7ea..3dbcb68e 100644
--- a/tests/auto/qsensor/tst_qsensor.cpp
+++ b/tests/auto/qsensor/tst_qsensor.cpp
@@ -877,6 +877,10 @@ private slots:
QCOMPARE(reading->orientation(), QOrientationReading::LeftUp);
})
+ TEST_SENSORINTERFACE(QPressureSensor, QPressureReading, {
+ QCOMPARE(reading->pressure(), 1.0);
+ })
+
TEST_SENSORINTERFACE(QProximitySensor, QProximityReading, {
QCOMPARE(reading->close(), true);
})