summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2013-01-08 11:55:10 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-23 18:32:14 +0100
commitacd094c6d795a597d3b899633e207d65f79ea746 (patch)
tree5794fe09472804158a97be1f6d62fbaabb1be54e /tests
parenta001511d8629c05de807f9927c3fa75f5d59a768 (diff)
QAccelerometer: Add AccelerationMode property
Add a new property to be able to toggle effects of gravity on or off. Implement the Blackberry backend side of this as well. QTBUG-25842 Change-Id: I15c4cae72373f48b0153b83c6aa3d27b66538c87 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com> Reviewed-by: Sérgio Martins <sergio.martins.qnx@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qsensor/tst_qsensor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qsensor/tst_qsensor.cpp b/tests/auto/qsensor/tst_qsensor.cpp
index a4591aa4..3852f7ea 100644
--- a/tests/auto/qsensor/tst_qsensor.cpp
+++ b/tests/auto/qsensor/tst_qsensor.cpp
@@ -959,6 +959,7 @@ private slots:
QVERIFY(!sensor.isFeatureSupported(QSensor::Buffering));
QVERIFY(!sensor.isFeatureSupported(QSensor::GeoValues));
QVERIFY(!sensor.isFeatureSupported(QSensor::FieldOfView));
+ QVERIFY(!sensor.isFeatureSupported(QSensor::AccelerationMode));
// Connect to backend - according to the testsensorimpl implementation, AlwaysOn and
// GeoValues should be supported afterwards
@@ -968,6 +969,7 @@ private slots:
QVERIFY(!sensor.isFeatureSupported(QSensor::Buffering));
QVERIFY(sensor.isFeatureSupported(QSensor::GeoValues));
QVERIFY(!sensor.isFeatureSupported(QSensor::FieldOfView));
+ QVERIFY(!sensor.isFeatureSupported(QSensor::AccelerationMode));
}
};