summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAndrew Inwood <ainwood@blackberry.com>2014-04-01 13:40:08 -0400
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-09 22:24:39 +0200
commite60743e095b8bb7fcc3f0de823d2a46aa68343d3 (patch)
treee969b1a950ad61416a11710758967288da8b0b5a /examples
parent2a503c28e4b9c9c05ee69e115f3530bb764844e3 (diff)
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