summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensorgestures/qtsensors/qtwistsensorgesturerecognizer.h
diff options
context:
space:
mode:
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;