diff options
Diffstat (limited to 'tests/auto/qsensor/test_backends.h')
-rw-r--r-- | tests/auto/qsensor/test_backends.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qsensor/test_backends.h b/tests/auto/qsensor/test_backends.h index 0d8e2bab..a36a8586 100644 --- a/tests/auto/qsensor/test_backends.h +++ b/tests/auto/qsensor/test_backends.h @@ -58,6 +58,7 @@ void unregister_test_backends(); #include <qrotationsensor.h> #include <qtapsensor.h> #include <qirproximitysensor.h> +#include <qtiltsensor.h> #define PREPARE_SENSORINTERFACE_DECLS(SensorClass, ReadingClass, FilterClass, readingcode)\ class SensorClass ## _impl : public QSensorBackend\ @@ -132,6 +133,10 @@ PREPARE_SENSORINTERFACE(QTapSensor, QTapReading, QTapFilter, { PREPARE_SENSORINTERFACE(QIRProximitySensor, QIRProximityReading, QIRProximityFilter, { reading->setReflectance(0.5); }) +PREPARE_SENSORINTERFACE(QTiltSensor, QTiltReading, QTiltFilter, { + reading->setYRotation(1.0); + reading->setXRotation(1.0); +}) #define TEST_SENSORINTERFACE(SensorClass, ReadingClass, readingcode)\ do {\ |