Introduce a QOrientableSensorBase class.
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>
Tue, 31 Jul 2012 10:05:34 +0000 (12:05 +0200)
committerThomas McGuire <thomas.mcguire.qnx@kdab.com>
Thu, 2 Aug 2012 09:34:10 +0000 (11:34 +0200)
commit1a04e31944c54e7deaa3b81acbe9004669d2e624
treee7aff4e33a5073b3d7def5cd88588dc26e87ef8d
parentad80762db4d1ec5aafba8bf08e6a81b1eaaa1016
Introduce a QOrientableSensorBase class.

All axes-based sensor and the compass now inherit from this class.
It allows adapting the reading values based on the current screen
orientation.

Change-Id: If436aa64442cc47f8f06385c36ea7d4833327fcb
src/sensors/qaccelerometer.h
src/sensors/qcompass.h
src/sensors/qgyroscope.h
src/sensors/qmagnetometer.h
src/sensors/qorientablesensorbase.cpp [new file with mode: 0644]
src/sensors/qorientablesensorbase.h [new file with mode: 0644]
src/sensors/qrotationsensor.h
src/sensors/sensors.pro