diff options
author | Andrew Inwood <ainwood@blackberry.com> | 2014-04-01 13:40:08 -0400 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-09 22:24:39 +0200 |
commit | e60743e095b8bb7fcc3f0de823d2a46aa68343d3 (patch) | |
tree | e969b1a950ad61416a11710758967288da8b0b5a /examples | |
parent | 2a503c28e4b9c9c05ee69e115f3530bb764844e3 (diff) | |
download | qtsensors-e60743e095b8bb7fcc3f0de823d2a46aa68343d3.tar.gz |
Android, Fix generic access to QAccelerometer
Generic access to QAccelerometer through QSensor was broken by my
previous change: 971fc95eca1d9db93aa4bdb75793dfe83e4a97db
When using a QSensor* to access the accelerometer, the qobject_cast
would fail, and return 0. I fix this by defaulting the accelerationMode
to Combined when a QSensor* is used.
Change-Id: If8389808a416807b72709a13ca315aa23bbf94a0
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions