diff options
Diffstat (limited to 'tests/auto/qsensor/test_backends.h')
-rw-r--r-- | tests/auto/qsensor/test_backends.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qsensor/test_backends.h b/tests/auto/qsensor/test_backends.h index e47cfd57..a47d7057 100644 --- a/tests/auto/qsensor/test_backends.h +++ b/tests/auto/qsensor/test_backends.h @@ -51,6 +51,7 @@ void unregister_test_backends(); #include <qambientlightsensor.h> #include <qcompass.h> #include <qgyroscope.h> +#include <qholstersensor.h> #include <qlightsensor.h> #include <qmagnetometer.h> #include <qorientationsensor.h> @@ -109,6 +110,9 @@ PREPARE_SENSORINTERFACE(QGyroscope, QGyroscopeReading, QGyroscopeFilter, { reading->setY(1.0); reading->setZ(1.0); }) +PREPARE_SENSORINTERFACE(QHolsterSensor, QHolsterReading, QHolsterFilter, { + reading->setHolstered(true); +}) PREPARE_SENSORINTERFACE(QLightSensor, QLightReading, QLightFilter, { reading->setLux(1.0); }) |