summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensorgestures/qtsensors/qtwistsensorgesturerecognizer.h
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2012-03-01 11:05:52 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-01 11:09:23 +0100
commit1c99076a1f55a28ac6c745d1df05226401f11107 (patch)
tree9ab51a2b516dbf9b5a6861b7008320368dfc6c9f /src/plugins/sensorgestures/qtsensors/qtwistsensorgesturerecognizer.h
parentd75fefbcce3dae2eda571905ae0d3485f038956c (diff)
share sensors among the recognizers in QtSensors recognizer.
Change-Id: Ie08046de2e293b8b6271851ce8b740832a6de315 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Diffstat (limited to 'src/plugins/sensorgestures/qtsensors/qtwistsensorgesturerecognizer.h')
-rw-r--r--src/plugins/sensorgestures/qtsensors/qtwistsensorgesturerecognizer.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/sensorgestures/qtsensors/qtwistsensorgesturerecognizer.h b/src/plugins/sensorgestures/qtsensors/qtwistsensorgesturerecognizer.h
index df366060..6beb7c82 100644
--- a/src/plugins/sensorgestures/qtsensors/qtwistsensorgesturerecognizer.h
+++ b/src/plugins/sensorgestures/qtsensors/qtwistsensorgesturerecognizer.h
@@ -46,6 +46,7 @@
#include <qsensorgesturerecognizer.h>
#include <QtSensors/QAccelerometer>
#include <QtSensors/QOrientationSensor>
+#include "qtsensorgesturesensorhandler.h"
QT_BEGIN_NAMESPACE
@@ -68,12 +69,13 @@ Q_SIGNALS:
void twistRight();
private slots:
- void accelChanged();
+ void accelChanged(QAccelerometerReading *reading);
+ void orientationReadingChanged(QOrientationReading *reading);
void timeout();
private:
- QAccelerometer *accel;
- QOrientationSensor *orientation;
+
+ QOrientationReading *orientationReading;
QTimer *timer;
int accelRange;
qreal lastRoll;